IQDM
IQDM
Session 3
Questions?
Excel Solver
Solving Example 3 using Excel Solver
DVs: x1 , x2 , x3 , x4 , x5 , x6
= The number of officers who begin work at 8AM, Noon,
4PM, 8PM, Midnight and 4AM, respectively.
min z = x1 + x2 + x3 + x4 + x5 + x6
s.t.
x6+x1 ≥ 5
x1+x2 ≥ 6
x2+x3 ≥ 10
x3+x4 ≥ 7
x4+x5 ≥ 4
x5+x6 ≥ 6
x1 ≥ 0, x2 ≥ 0, x3 ≥ 0, x4 ≥ 0, x5 ≥ 0, x6 ≥ 0; all xi int
Example 5
• A product is assembled with 4 units of component A
and 3 units of component B.
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
100 units of raw material I (RM I) and 200 units
of raw material II (RM II) are available to the
shop each day.
RM I RM II A B
I 7 5 6 4
II 4 8 5 8
III 2 7 7 3
“A product is
assembled with
4 units of
• Total quantity of A produced component A
= 6x1 + 5x2 + 7x3 and 3 units of
component B”.
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
• 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
• Why?
• Does it matter?
Homework