Converting
Converting
All LP solvers first convert the given program to standard form which
means
1
Example 1: the meatloaf problem
Recall the meatloaf problem, whose formulation was
Minimize
80x + 60y
subject to
x+y ≥ 1
−.05x + .07y ≤ 0
x, y ≥ 0.
2
The meatloaf problem in standard form
Minimize
80x + 60y
subject to
x + y − s1 = 1
−.05x + .07y + s2 = 0
x, y, s1 , s2 ≥ 0.
3
Example 2: production without overtime
A company manufactures two products, A and B. The relevant production
data is as follows
4
Example 3: production with overtime
Consider the same problem as before, but now with the wrinkle that labor
and machine overtime may be purchased at a cost:
• Labor and machine overtime cost: $15 and $10 per hour, respectively
5
Resolution
Write s1 = s− + − + ±
1 − s1 and s= 2 = s2 − s2 , all si ≥ 0
Interpretation:
s−
1 measures amount of unused labor
s+
1 measures amount of overtime labor
s−
1 measures amount of unused machine time
s+
1 measures amount of overtime on machines