|
|
max: a1x1 + a2x2 + ... + anxn // Objective function
subject to:
c11x1 + c12x2 + ... + c1nxn ≤ d1 // Constraints
c21x1 + c22x2 + ... + c2nxn ≤ d2
....
cm1x1 + cm2x2 + ... + cmnxn ≤ dm
x1 ≥ 0, x2 ≥ 0, ..., xn ≥ 0
|
Note:
|
|
|
|
|
The variable s1 is called a surplus variable
|
max: x1 + x2
s.t.: x1 + 2x2 ≤ 8
3x1 + 2x2 ≤ 12
x1 ≥ 0, x2 ≥ 0
|
max: z = x1 + x2
s.t.: x1 + 2x2 ≤ 8
3x1 + 2x2 ≤ 12
x1 ≥ 0, x2 ≥ 0
|
We want to maximize the variable x...
|
Notes:
|
|
|
|
|
Related: Non-basic variable:
|
Example:
x1 x2 s1 s2 z | RHS
==========================+====
-1 -1 0 0 1 | 0
1 2 1 0 0 | 8
3 2 0 1 0 | 12
Basic variables: s1 s2 z
Non-basic variables: x1 x2
|
|
|
Example:
|
|
|
|
|