Professional Documents
Culture Documents
2021 11 02 Session2
2021 11 02 Session2
Session 2
Questions?
LP Assumptions
• Proportionality
– E.g. z = 4x + … .
– That is, 1 unit increase in x results in 4 units increase in z.
• Additivity
– If the above z is also proportional to y, where 1 unit increase in y
results in 3 units increase in z as well, then
– z = 4x + 3y
• Certainty
– Coefficients are deterministic
• Is f = xy + yz a linear function?
• f(x,z) = xy + yz?
• f(y) = xy + yz?
• f(x,y) = xy + yz?
LP or LPP Formulation
• Decision variables
• Objective function
• Constraints
Some Mathematical Background
• Bounded set
• Closed set
• A (Linear) Inequality provides a boundary on
one side.
• Constraints include the boundary.
• [0, 1] is closed
and corresponds to 0 ≤ x ≤ 1
RM I RM II A B
I 7 5 6 4
II 4 8 5 8
III 2 7 7 3
Formulate as an LP to maximize the number of
completed assemblies produced each day.
Decision Variables
RM I RM II A B
I 7 5 6 4
II 4 8 5 8
III 2 7 7 3
Constraints
• x1, x2, x3 ≥ 0
Objective Function?
• Total quantity of A produced
= 6x1 + 5x2 + 7x3
Linear?
max z = y
s.t. y ≤ (6x1 + 5x2 + 7x3) / 4
y ≤ (4x1 + 8x2 + 3x3) / 3
LP Formulation of Example 5
x1, x2, x3: number of runs of I, II, III, respectively.
y: number of completed assemblies
max z = y
The unit contribution per bowl is $40 and that per mug is $50.
LP Formulation
Resource Requirements
Product Labor Clay
(hr/unit) (lb/unit)
Bowl 1 4
Mug 2 3
LP Formulation
If feasible, then
• Convex set
Examples of Convex Sets
In general…
A
B
A
B
A
B
A
• The rate of change of x2 with respect to x1 is a
constant.
• Slope.
Solving Graphically
40x1+ 50x2 = 0
Solving Graphically
0 (0, 0) 0
A (0, 20) 1000
B (24, 8) 1360
C (30, 0) 1200
Chemical Contribution
Nitrogen Phosphate
Brand (lb/bag) (lb/bag)
Super-gro 2 4
Crop-quick 4 3
LP Formulation
Decision variables
x1 = bags of Super-gro
x2 = bags of Crop-quick
The objective function:
minimize Z = $6x1 + 3x2
where $6x1 = cost of bags of Super-gro
3x2 = cost of bags of Crop-quick
Model constraints:
2x1 + 4x2 16 lb (nitrogen constraint)
4x1 + 3x2 24 lb (phosphate constraint)
x1, x2 0 (non negativity constraints)
Formulation and Graph