Professional Documents
Culture Documents
VIN DE SILVA
1. Linear optimization
Operations Research became a field of research in the aftermath of World War II.
Example. You manufacture two brands (1 and 2) of a product type, from two raw ingredients (A and B).
Ingredient Composition:
1 lb of Brand 1 requires 1 lb of ingredient A
2 lb of ingredient B
Ingredient Availability:
6 lb of ingredient A
8 lb of ingredient B
Profit:
$30 for each pound of Brand 1
$20 for each pound of Brand 2
Regulations:
You may not make more than 2 lb of Brand 2.
The amount of Brand 2 cannot exceed the amount of Brand 1 by more than 1 lb.
Date: 2022–jan–19.
1
We introduce two decision variables:
x1 = amount of Brand 1 that we manufacture
x2 = amount of Brand 2 that we manufacture
• A feasible solution is an assignment of values to the decisions variables that satisfies all the constraints.
• An optimal solution is a feasible solution that maximizes (or minimizes) the objective function.
Exercise. Find a feasible solution. Evaluate the objective function on your feasible solution.
(i)
(ii)
Obvious question:
• Given a non-optimal feasible solution, how can we find a better feasible solution?
Proof. We calculate: z =
. . . (x1 + 2x2 ) ≤ . . . 6
. . . (2x1 + x2 ) ≤ . . . 8
What happened here? The whispered hint enabled us to certify the optimality of the given solution.
1.2. Geometric point of view
We can draw our 2-variable example in the plane. Each inequality confines the feasible set to a half-plane:
Desmos | Graphing Calculator 1/19/22, 1'18 PM Desmos | Graphing Calculator 1/19/22, 1'18 PM Desmos | Graphing Calculator 1/19/22, 1'19 PM
x1 + 2x2 ≤ 6 2x1 + x2 ≤ 8 x2 ≤ 2
Desmos | Graphing Calculator 1/19/22, 1'18 PM Desmos | Graphing Calculator 1/19/22, 1'19 PM Desmos | Graphing Calculator 1/19/22, 1'19 PM
−x1 + x2 ≤ 1 x1 ≥ 0 x2 ≥ 0
https://www.desmos.com/calculator Page 1 of 3
Let us shade the feasible set:
Desmos | Graphing Calculator 1/19/22, 1'20 PM
"isolines" of the
objective function
To optimize the objective function z = 30x1 + 20x2 , we consider all lines of the form:
https://www.desmos.com/calculator Page 1 of 3
If we reverse the constraints C2 and C4 , then the feasible set becomes empty.
Desmos | Graphing Calculator 1/19/22, 1'28 PM
https://www.desmos.com/calculator Page 1 of 3
1.3. Integer Programming (IP)
Important Warning. For many IP, the solution to the associated LP may be no use at all.
Example. Suppose in the previous problem we are manufacturing bricks, rather than liquid soap.
Desmos | Graphing Calculator 1/19/22, 1'20 PM
https://www.desmos.com/calculator Page 1 of 3