CPS 173 Linear programming, integer linear programming, mixed integer linear programming

Slides:



Advertisements
Similar presentations
Solving Linear Programming Problems
Advertisements

Tuesday, March 5 Duality – The art of obtaining bounds – weak and strong duality Handouts: Lecture Notes.
Mixed integer linear programming
1 LP Duality Lecture 13: Feb Min-Max Theorems In bipartite graph, Maximum matching = Minimum Vertex Cover In every graph, Maximum Flow = Minimum.
Branch and Bound See Beale paper. Example: Maximize z=x1+x2 x2 x1.
Solving IPs – Cutting Plane Algorithm General Idea: Begin by solving the LP relaxation of the IP problem. If the LP relaxation results in an integer solution,
Standard Minimization Problems with the Dual
Copyright (c) 2003 Brooks/Cole, a division of Thomson Learning, Inc
Chapter 2 Linear Programming Models: Graphical and Computer Methods © 2007 Pearson Education.
Computational problems, algorithms, runtime, hardness
INFM 718A / LBSC 705 Information For Decision Making Lecture 4.
Duality Lecture 10: Feb 9. Min-Max theorems In bipartite graph, Maximum matching = Minimum Vertex Cover In every graph, Maximum Flow = Minimum Cut Both.
Constrained Maximization
Approximation Algorithms
What is Linear Programming? A Linear Program is a minimization or maximization problem, subject to several restraints. Linear programs can be set up for.
Constrained Optimization Rong Jin. Outline  Equality constraints  Inequality constraints  Linear Programming  Quadratic Programming.
Linear Programming: Fundamentals
Sandia is a multiprogram laboratory operated by Sandia Corporation, a Lockheed Martin Company, for the United States Department of Energy under contract.
Integer Programming Difference from linear programming –Variables x i must take on integral values, not real values Lots of interesting problems can be.
Sandia is a multiprogram laboratory operated by Sandia Corporation, a Lockheed Martin Company, for the United States Department of Energy under contract.
1 Linear Programming Jeff Edmonds York University COSC 3101 Lecture 5 Def and Hot Dog Example Network Flow Def nNetwork Flow Def n Matrix View of Linear.
Linear Programming – Max Flow – Min Cut Orgad Keller.
1 Linear Programming Supplements (Optional). 2 Standard Form LP (a.k.a. First Primal Form) Strictly ≤ All x j 's are non-negative.
LP formulation of Economic Dispatch
Linear Programming Operations Research – Engineering and Math Management Sciences – Business Goals for this section  Modeling situations in a linear environment.
9/1 More Linear Programming Collect homework Roll call Review homework Lecture - More LP Small Groups Lecture - Start using MS Excel Assign Homework.
A-REI Represent and solve equations and inequalities graphically
Chapter 4 - Linear Programming: Computer Solution Excel Solver
Linear Programming Chapter 13 Supplement.
Mathematical Programming Cht. 2, 3, 4, 5, 9, 10.
Chapter 12 Discrete Optimization Methods
Types of IP Models All-integer linear programs Mixed integer linear programs (MILP) Binary integer linear programs, mixed or all integer: some or all of.
Integer Programming Key characteristic of an Integer Program (IP) or Mixed Integer Linear Program (MILP): One or more of the decision variable must be.
The Simplex Method. Standard Linear Programming Problem Standard Maximization Problem 1. All variables are nonnegative. 2. All the constraints (the conditions)
Chapter 6 Linear Programming: The Simplex Method Section R Review.
Linear Programming: A Geometric Approach3 Graphing Systems of Linear Inequalities in Two Variables Linear Programming Problems Graphical Solution of Linear.
CPS 270: Artificial Intelligence More search: When the path to the solution doesn’t matter Instructor: Vincent.
OPSM 301 Operations Management Class 10: Introduction to Linear Programming Koç University Zeynep Aksin
Integer Programming Each year CrossChek decides which lines of golf clubs and clothing it will market. Consider that each line of golf clubs is expected.
1/24: Linear Programming & Sensitivity Analysis Review: –LP Requirements –Graphical solutions Using MS Excel for Linear Programming Sensitivity Analysis.
TexPoint fonts used in EMF. Read the TexPoint manual before you delete this box.: AA A A A A A A A A Image:
Chapter 24 – Multicriteria Capital Budgeting and Linear Programming u Linear programming is a mathematical procedure, usually carried out by computer software,
Linear Programming Problem. Definition A linear programming problem is the problem of optimizing (maximizing or minimizing) a linear function (a function.
CPS Brief introduction to linear and mixed integer programming
Integer LP In-class Prob
CPSC 536N Sparse Approximations Winter 2013 Lecture 1 N. Harvey TexPoint fonts used in EMF. Read the TexPoint manual before you delete this box.: AAAAAAAAAA.
OPSM 301 Operations Management Class 11: Linear Programming using Excel Koç University Zeynep Aksin
Linear Programming Short-run decision making model –Optimizing technique –Purely mathematical Product prices and input prices fixed Multi-product production.
Warm-upWarm-up Sketch the region bounded by the system of inequalities: 1) 2) Sketch the region bounded by the system of inequalities: 1) 2)
1 Geometrical solution of Linear Programming Model.
Chapter 9 Integer Programming to accompany Operations Research: Applications and Algorithms 4th edition by Wayne L. Winston Copyright (c) 2004 Brooks/Cole,
Chapter 2 Linear Programming Models: Graphical and Computer Methods
CPS Brief introduction to linear and mixed integer programming
FUNCTIONS When you push a button on your phone, the tone made is actually two tones of different frequencies added together. To obtain the graph of the.
Introduction to Linear Programs
EMGT 6412/MATH 6665 Mathematical Programming Spring 2016
integer linear programming, mixed integer linear programming
Instructor: Vincent Conitzer
Chap 9. General LP problems: Duality and Infeasibility
The Simplex Method: Standard Minimization Problems
Linear Programming Skill 45.
Linear Programming Duality, Reductions, and Bipartite Matching
Max Z = x1 + x2 2 x1 + 3 x2  6 (1) x2  1.5 (2) x1 - x2  2 (3)
integer linear programming, mixed integer linear programming
Brief introduction to linear and mixed integer programming
Chapter 5. The Duality Theorem
Lecture 20 Linear Program Duality
DUALITY THEORY Reference: Chapter 6 in Bazaraa, Jarvis and Sherali.
Practical Issues Finding an initial feasible solution Cycling
Presentation transcript:

CPS 173 Linear programming, integer linear programming, mixed integer linear programming

Example linear program maximize 3x + 2y subject to 4x + 2y ≤ 16 x + 2y ≤ 8 x + y ≤ 5 x ≥ 0 y ≥ 0 We make reproductions of two paintings Painting 1 sells for $30, painting 2 sells for $20 Painting 1 requires 4 units of blue, 1 green, 1 red Painting 2 requires 2 blue, 2 green, 1 red We have 16 units blue, 8 green, 5 red

Solving the linear program graphically maximize 3x + 2y subject to 4x + 2y ≤ 16 x + 2y ≤ 8 x + y ≤ 5 x ≥ 0 y ≥ optimal solution: x=3, y=2

Proving optimality maximize 3x + 2y subject to 4x + 2y ≤ 16 x + 2y ≤ 8 x + y ≤ 5 x ≥ 0 y ≥ 0 Recall: optimal solution: x=3, y=2 Solution value = 9+4 = 13 How do we prove this is optimal (without the picture)?

Proving optimality… maximize 3x + 2y subject to 4x + 2y ≤ 16 x + 2y ≤ 8 x + y ≤ 5 x ≥ 0 y ≥ 0 We can rewrite the blue constraint as 2x + y ≤ 8 If we add the red constraint x + y ≤ 5 we get 3x + 2y ≤ 13 Matching upper bound! (Really, we added.5 times the blue constraint to 1 times the red constraint)

Linear combinations of constraints maximize 3x + 2y subject to 4x + 2y ≤ 16 x + 2y ≤ 8 x + y ≤ 5 x ≥ 0 y ≥ 0 b(4x + 2y ≤ 16) + g(x + 2y ≤ 8) + r(x + y ≤ 5) = (4b + g + r)x + (2b + 2g + r)y ≤ 16b + 8g + 5r 4b + g + r must be at least 3 2b + 2g + r must be at least 2 Given this, minimize 16b + 8g + 5r

Using LP for getting the best upper bound on an LP maximize 3x + 2y subject to 4x + 2y ≤ 16 x + 2y ≤ 8 x + y ≤ 5 x ≥ 0 y ≥ 0 minimize 16b + 8g + 5r subject to 4b + g + r ≥ 3 2b + 2g + r ≥ 2 b ≥ 0 g ≥ 0 r ≥ 0 the dual of the original program Duality theorem: any linear program has the same optimal value as its dual!

Modified LP maximize 3x + 2y subject to 4x + 2y ≤ 15 x + 2y ≤ 8 x + y ≤ 5 x ≥ 0 y ≥ 0 Optimal solution: x = 2.5, y = 2.5 Solution value = = 12.5 Half paintings?

Integer (linear) program maximize 3x + 2y subject to 4x + 2y ≤ 15 x + 2y ≤ 8 x + y ≤ 5 x ≥ 0, integer y ≥ 0, integer optimal LP solution: x=2.5, y=2.5 (objective 12.5) optimal IP solution: x=2, y=3 (objective 12)

Mixed integer (linear) program maximize 3x + 2y subject to 4x + 2y ≤ 15 x + 2y ≤ 8 x + y ≤ 5 x ≥ 0 y ≥ 0, integer optimal LP solution: x=2.5, y=2.5 (objective 12.5) optimal IP solution: x=2, y=3 (objective 12) optimal MIP solution: x=2.75, y=2 (objective 12.25)

Exercise in modeling: knapsack-type problem We arrive in a room full of precious objects Can carry only 30kg out of the room Can carry only 20 liters out of the room Want to maximize our total value Unit of object A: 16kg, 3 liters, sells for $11 –There are 3 units available Unit of object B: 4kg, 4 liters, sells for $4 –There are 4 units available Unit of object C: 6kg, 3 liters, sells for $9 –Only 1 unit available What should we take?

Exercise in modeling: cell phones (set cover) We want to have a working phone in every continent (besides Antarctica) … but we want to have as few phones as possible Phone A works in NA, SA, Af Phone B works in E, Af, As Phone C works in NA, Au, E Phone D works in SA, As, E Phone E works in Af, As, Au Phone F works in NA, E

Exercise in modeling: hot-dog stands We have two hot-dog stands to be placed in somewhere along the beach We know where the people that like hot dogs are, how far they are willing to walk Where do we put our stands to maximize #hot dogs sold? (price is fixed) location: 4 #customers: 1 willing to walk: 2 location: 7 #customers: 3 willing to walk: 3 location: 9 #customers: 4 willing to walk: 3 location: 1 #customers: 2 willing to walk: 4 location: 15 #customers: 3 willing to walk: 2