Linear programming: lp_solve, max flow, dual CSC 282 Fall 2013.

Slides:



Advertisements
Similar presentations
1 Outline relationship among topics secrets LP with upper bounds by Simplex method basic feasible solution (BFS) by Simplex method for bounded variables.
Advertisements

Integer Optimization Basic Concepts Integer Linear Program(ILP): A linear program except that some or all of the decision variables must have integer.
IEOR 4004 Midterm Review (part I)
Optimization problems using excel solver
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.
Lecture 3 Linear Programming: Tutorial Simplex Method
FORS 8450 Advanced Forest Planning Lecture 4 Extensions to Linear Programming.
Integer Programming Kusdhianto Setiawan Gadjah Mada University.
Understanding optimum solution
SCIP Optimization Suite
1 Chapter 11 Here we see cases where the basic LP model can not be used.
Linear Programming – Simplex Method
Variables that are unrestricted in sign LI Xiao-lei.
Introduction to Algorithms
To accompany Quantitative Analysis for Management, 8e by Render/Stair/Hanna 9-1 © 2003 by Prentice Hall, Inc. Upper Saddle River, NJ Chapter 9 Linear.
Sections 4.1 and 4.2 The Simplex Method: Solving Maximization and Minimization Problems.
SOLVING LINEAR PROGRAMS USING EXCEL Dr. Ron Lembke.
WOOD 492 MODELLING FOR DECISION SUPPORT Lecture 6 LP Assumptions.
The Simplex Method: Standard Maximization Problems
Lecture 6: Algorithm Approach to LP Soln AGEC 352 Fall 2012 – Sep 12 R. Keeney.
1 Linear Programming Jose Rolim University of Geneva.
CSCI 3160 Design and Analysis of Algorithms Tutorial 6 Fei Chen.
INFM 718A / LBSC 705 Information For Decision Making Lecture 4.
Linear Programming Integer Linear Models. When Variables Have To Be Integers Example – one time production decisions –Fractional values make no sense.
Problem Set # 4 Maximize f(x) = 3x1 + 2 x2 subject to x1 ≤ 4 x1 + 3 x2 ≤ 15 2x1 + x2 ≤ 10 Problem 1 Solve these problems using the simplex tableau. Maximize.
1 Linear Programming Supplements (Optional). 2 Standard Form LP (a.k.a. First Primal Form) Strictly ≤ All x j 's are non-negative.
Optimization of Linear Problems: Linear Programming (LP) © 2011 Daniel Kirschen and University of Washington 1.
1 Lecture 4 Maximal Flow Problems Set Covering Problems.
Chapter 4 - Linear Programming: Computer Solution Excel Solver
Linear Programming Chapter 13 Supplement.
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.
Introduction to Linear Programming BSAD 141 Dave Novak.
Duality Theory  Every LP problem (called the ‘Primal’) has associated with another problem called the ‘Dual’.  The ‘Dual’ problem is an LP defined directly.
Linear Programming – Simplex Method
1 Systems Analysis Methods Dr. Jerrell T. Stracener, SAE Fellow SMU EMIS 5300/7300 NTU SY-521-N NTU SY-521-N SMU EMIS 5300/7300 Statistical Analysis Other.
To accompany Quantitative Analysis for Management, 8e by Render/Stair/Hanna 11-1 © 2003 by Prentice Hall, Inc. Upper Saddle River, NJ Chapter 11.
In The Name Of Allah Lab 07 ins. Tahani Aldweesh.
Linear Programming Copyright © 2015 McGraw-Hill Education. All rights reserved. No reproduction or distribution without the prior written consent of McGraw-Hill.
Chapter 24 – Multicriteria Capital Budgeting and Linear Programming u Linear programming is a mathematical procedure, usually carried out by computer software,
Chapter 6 Simplex-Based Sensitivity Analysis and Duality
Slope and Rates of Change 5-3. Vocabulary Slope- of a line is a measure of its steepness and is the ratio of rise to run. Rate of change- The ratio of.
1.224J Recitation #2 Integer Programs. Topics Questions & office hrs Sensitivity analysis review Importance of linear IP formulation –Branch and bound.
15.053Tuesday, April 9 Branch and Bound Handouts: Lecture Notes.
Column Generation By Soumitra Pal Under the guidance of Prof. A. G. Ranade.
Gomory Cuts Updated 25 March Example ILP Example taken from “Operations Research: An Introduction” by Hamdy A. Taha (8 th Edition)“Operations Research:
Integer Programming Key characteristic of an Integer Program (IP) or Mixed Integer Linear Program (MILP): One or more of the decision variable must be.
Linear Programming and Applications
Ch. 3 Notes Page 19 P19 3.4b: Linear Programming.
Linear Programming The Table Method. Objectives and goals Solve linear programming problems using the Table Method.
Integer Programming, Branch & Bound Method
LINEAR AND INTEGER PROGRAMMING The Simplex Method: A tutorial in three acts.
Anytime Planning of Optimal Schedules for a Mobile Sensing Robot JINGJIN YU JAVED ASLAM SERTAC KARAMAN DANIELA RUS SPEAKER: SANKALP ARORA.
TU/e Algorithms (2IL15) – Lecture 12 1 Linear Programming.
Copyright © 2006 Brooks/Cole, a division of Thomson Learning, Inc. Linear Programming: An Algebraic Approach 4 The Simplex Method with Standard Maximization.
Simplex Method Review. Canonical Form A is m x n Theorem 7.5: If an LP has an optimal solution, then at least one such solution exists at a basic feasible.
Chapter 6 Optimization Models with Integer Variables.
GOOD MORNING CLASS! In Operation Research Class, WE MEET AGAIN WITH A TOPIC OF :
TU/e Algorithms (2IL15) – Lecture 12 1 Linear Programming.
Linear Programming Technical Supplement 1 Linear Programming Copyright © 2014 by the McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill/Irwin.
Integer Programming Set up the mathematical programming problem to choose the set of capital investments to make that will maximize the Net Present Value.
السيولة والربحية أدوات الرقابة المالية الوظيفة المالية
Solving Linear Systems by Linear Combinations
السيولة والربحية أدوات الرقابة المالية الوظيفة المالية
Integer Linear Programming
Gomory’s cutting plane algorithm for integer programming
INFM 718A / LBSC 705 Information For Decision Making
Advanced LP models column generation.
1.6 Linear Programming Pg. 30.
Profitability 7/17/2019 Technology Industries of Finland.
Presentation transcript:

linear programming: lp_solve, max flow, dual CSC 282 Fall 2013

lp_solve lp_solve is a free linear (integer) programming solver based on the revised simplex method and the Branch-and-bound method for the integers

Example: Profit Maximization

run lp_solve

lp_solve free variable – may be negative free x1, x2 ; converting ratios to LP: (a1 + a2) / (b1 + b2) <= 10 where b1 and b2 are positive becomes (a1 + a2) <= 10 (b1 + b2) integer and binary variables int r1; bin b1;

Flows in Networks Flow Constraints Maximizing Flow

Certificate of Optimality A solution returned by simplex can be converted into a short proof of optimality s-t cut: disjoint partitioning of vertices into sets L and R capacity of a cut: total capacity of edges from L to R optimal flow size(f) ≤ capacity(L,R) for any s-t cut max-flow min-cut theorem: size of the max flow equals capacity of smallest s-t cut

Duality In flow networks – flows are smaller than cuts, but – max flow = min cut This is a general property of LP – Every LP max problem has a dual min problem – The solution to the min problem is a proof of optimality of the max problem, and vice-versa

Example (x1,x2) = (100, 300) with objective value 1900 is solution found by simplex to: Multiplying the three inequalities by 0, 5, 1 respectively and adding them up gives: