Professional Documents
Culture Documents
Notes
Announcements
Notes
Review
Steps to building an optimization problem
1
Main constraints
Variable-type constraints
(objective function)
(main constraints)
(variable-type constraints)
Notes
maximize
subject to
1W + 2L
(total profit)
10W + 3L 1000
(malt capacity)
(hops capacity)
3W + 3L 1500
(labor capacity)
W 0,
L0
W integer
(nonnegativity)
(integrality)
L integer
Notes
Today...
Graphical solution method for two-variable optimization models
I
Notes
Notes
2x + 5y = 0
2x + 5y = 6
2x + 5y = 8
2x
+5
y=
18
x
2x
+
2x
+
2x + 5y = 18
2x + 5y = 23
2x
+
2x
+
5y
5y
5y
5y
=6
=0
=
8
=
23
7
Notes
Lines in R2
The equation
a1 x1 + a2 x2 = c
defines a line in R2 (the set of points satisfying the equation)
H , (x1 , x2 ) R2 : a1 x1 + a2 x2 = c .
Notes
Notes
p
x2 + y 2
10
Notes
11
Notes
12
Notes
13
Notes
14
Notes
Notes
(1
2x1 + 3x2 10
(1)
x1 + 3x2 8
(2)
x1 + x2 5
(3)
(4)
x2 3
(5)
(6)
x2 0
(7)
x1
(4)
5
Feasible region:
x1
x2
(2)
4
(5)
3
x1
16
Notes
(1
2x1 + 3x2 10
(1)
(2)
x1 + 3x2 8 (2)
x1 + x2 5 (3)
(4)
x2
(3
s.t.
3x1 + 5x2
(5)
3
4 (4)
x1
x2 3 (5)
0 (6)
x1
x2 0 (7)
x1
3x1 + 5x2 = 16
3x1 + 5x2 = 14
3x1 + 5x2 = 12
3x1 + 5x2 = 10
3x1 + 5x2 = 8
3x1 + 5x2 = 6
3x1 + 5x2 = 4
3x1 + 5x2 = 2
3x1 + 5x2 = 0
17
Notes
x2
2x1 + 3x2 10
(1)
x1 + 3x2 8 (2)
x1 + x2 5 (3)
x1
(5)
3
4 (4)
x2 3 (5)
x1
(2)
(4)
s.t.
2x1 + 3x2
(3
max
0 (6)
x2 0 (7)
x1
5
2x1 + 3x2 = 10
2x1 + 3x2 = 8
2x1 + 3x2 = 6
2x1 + 3x2 = 4
2x1 + 3x2 = 2
2x1 + 3x2 = 0
18
Notes
19
Notes
x2
(4)
No feasible solutions!
5
Feasible region:
(1
2x1 + 3x2 10
(1)
x1 + 3x2 8
(2)
x1 + x2 5
(3)
(4)
x2 3
(5)
(6)
x2 0
(7)
x1
x1
(2)
3
(5)
2
x1
20
Notes
Infeasible problems
21
Notes
s.t.
3x1 + x2
x1 + x2 1
(1)
(2)
(1
)
x2
max
x1 2x2 4 (2)
x1
(3)
x2 0
(4)
2
1
x1
3x1 + x2 = 18
3x1 + x2 = 16
3x1 + x2 = 14
3x1 + x2 = 12
3x1 + x2 = 10
3x1 + x2 = 8
3x1 + x2 = 6
3x1 + x2 = 4
3x1 + x2 = 2
The problem is
unbounded from
above.
3x1 + x2 = 0
22
Notes
Unbounded problems
23
Notes
s.t. x1 + x2 1
(1)
(2)
(1
)
x2
max 3x1 x2
3
x1 2x2 4 (2)
x1
(3)
x2 0
(4)
2
1
x1
3x1 x2 = 18
3x1 x2 = 16
3x1 x2 = 14
3x1 x2 = 12
3x1 x2 = 10
3x1 x2 = 8
3x1 x2 = 6
3x1 x2 = 4
3x1 x2 = 2
3x1 x2 = 0
24
Notes
be infeasible, or
be unbounded
25
Notes
min
s.t.
x1 0
x2 0
x21
x2 1 0
x1 R, x2 R
Plot the feasible set.
Recall that x21 x2 1 = 0 is a parabola in the (x1 , x2 ) plane.
Plot the contour curves of the objective functions.
Recall that (x1 2)2 + (x2 1)2 = k 2 is a circle in the (x1 , x2 )
plane, centered in (2,1) and having radius equal to k.
The optimal solution is at the intersection between the smallest
contour curve and the feasible set.
26
Notes
min c1 x1 + c2 x2
x1 + x2 1
(1)
2x1 + x2 9
(2)
x1 x2 1
(3)
x2 3
(4)
(4)
(3
d
f
(1
x2
(2)
s.t.
x1
x1 0, x2 0
Suppose [A] has a unique optimal solution. Which points could it be,
if any?
27
Notes
Next time...
28