standard.form: Obtain standard form of linear program

View source: R/lpsf.R

standard.formR Documentation

Obtain standard form of linear program

Description

This function is mainly a wrapper of the simplex function from the boot package. It returns the standard form of the constraints matrix of a linear program.

Usage

standard.form(A, b, sense, lb = NULL, obj = NULL)

Arguments

A

The matrix that represents the constraints.

b

The rhs vector that represents the constraints.

sense

The sense of the constraints.

lb

The lower bound of the variables.

obj

The objective function.

Value

Returns the following four objects:

A

The matrix representing the constraints in standard form.

b

The rhs vector representing the constraints in standard form.

lb

The lower bound of the variables.

obj

The objective function.


conroylau/lpinfer documentation built on Oct. 23, 2022, 9:21 a.m.