LabWindows/CVI

Linear Programming

Linear programming problems have the following characteristics:

  • Linear objective function
  • Solution set X with a polyhedron shape defined by linear inequality constraints
  • Continuous f(x)
  • Partially combinatorial structure

Solving linear programming problems involves finding the optimal value of f(x) where f(x) is a linear combination of variables, as shown in the following equation.

The value of f(x) in the previous equation can have the following constraints:

  • Primary constraints of xi ≥ 0, …, xn ≥ 0
  • Additional constraints of M = m1 + m2 + m3
  • m1 of the following form ai1x1 + … + ainxnbi, (bi ≥ 0 ), i = 1, …, m1
  • m2 of the following form aj1x1 + … + ajnxnbj, (bj ≥ 0 ), j = m1 + 1, …, m1 + m2
  • m3 of the following form ak1x1 + … + aknxn = bk, (bk ≥ 0 ), k = m1 + m2 + 1, …, M

Any vector x that satisfies all the constraints on the value of f(x) constitutes a feasible answer to the linear programming problem. The vector yielding the best result for f(x) is the optimal solution.

The following relationship represents the standard form of the linear programming problem.

where x is the real vector of unknowns, c is the real cost vector, and A is the real constraint matrix of size m x n. At least one member of solution set X is at a vertex of the polyhedron that describes X.