MILP - Examples I - ST
MILP - Examples I - ST
Then
x1 Ú x2 is equivalent to y1 + y2 ³ 1
x1 • x2 y1 = 1, y2 = 1
~ x1 y1 = 0
x1 ® x2 y1 - y2 £ 0
x1 « x2 y1 - y2 = 0
Summary
Also, åa x
j
j j £ b Þ y =1
is handled by å a x - (m - e ) y ³ b + e
j
j j
• Logical constraints
• Blending
• Food manufacture (revisited)
• Commercial allocation
• Integer cuts
Systematic Treatment of Logic
To go from arbitrary propositional logic statements into a set of mixed integer
constraints we need to derived their conjunctive normal form (CNF)
𝑄! ∧ 𝑄"
Problem 1: Logical constraints
A manufacturing company can purchase up to five ingredients: A, B, C, D and
E. Formulate the following cases as mixed integer linear programming
constraints:
• Hardness blends linearly and the hardness of the final product must
lie between 3 and 6 9
Problem 3: Food Manufacture (revisited)
Determine:
• In each month, how much raw oils to purchase, used for food
manufacture and sold
So as to:
• Maximise the overall profit (case A)
BUT
• Case B: If an oil is used in a month at least 100 tons must be used
• Case C: The food can be made up to 2 oils in any month
Given:
• The estimated impact of allocating zero,
one, two, or three spots to each product.
• This impact is measured in terms of the
profit (in units of millions of £) from the
additional sales that would result from the
spots, considering also the cost of
producing the commercial and purchasing
the spots.
• Note: pij: profit when j TV spots are used
for product i
Determine:
• allocation of five spots to the products
So as to: 11
• maximise the total profit.
Problem 5: Integer Cuts