Linear Programming Simplex Method VI
- Updated2025-07-30
- 3 minute(s) read
Determines the solution of a linear programming problem.

Inputs/Outputs
C
—
C is a vector describing the linear functional to maximize.
M
—
M is a matrix describing the different constraints.
B
—
B is a vector describing the right sides of the constraints inequalities.
maximum
—
maximum is the maximal value, if it exists, of X under the constraints.
X
—
X is the solution vector.
ticks
—
ticks is the time in milliseconds for the whole calculation.
error
—
error returns any error or warning condition from the VI. The nonexistence of a solution X leads to an error. You can wire error to the Error Cluster From Error Code VI to convert the error code or warning into an error cluster. |
The following equation defines the optimization problem this VI solves.
cx = max!with the constraints x ≥ 0 and mx ≥ b.
For the optimization problem cx = max!, use the following definitions:
X = (x1, …, xn) C = (c1, …, cn) B = (b1, …, bk) M is a k-by-n matrix.To solve the optimization problem, you must decide whether an optimal vector X does exist. If the optimal vector does exist, then determine this vector X.
The solution of a linear programming problem is a two-step process. Complete the following steps to solve a linear programming problem.
- Transform the original problem into a problem in restricted normal form, essentially without inequalities in the formulation.
- Solve the restricted normal form problem.
Examples
Refer to the following example files included with LabVIEW.
- labview\examples\Mathematics\Optimization\Geometrical Analysis with Linear Programming.vi
C
—
M
—
maximum
—
X
—
ticks
—
error
—