D Nagesh Kumar, IIScOptimization Methods: M4L1 1 Linear Programming Applications Software for Linear Programming.

Slides:



Advertisements
Similar presentations
Using Solver to solve a minimization LP + interpretation of output BSAD 30 Dave Novak Source: Anderson et al., 2013 Quantitative Methods for Business 12.
Advertisements

Chapter 5: Linear Programming: The Simplex Method
Linear Programming Problem
Lecture 3 Linear Programming: Tutorial Simplex Method
Operation Research Chapter 3 Simplex Method.
Introduction to Sensitivity Analysis Graphical Sensitivity Analysis
The Simplex Method The geometric method of solving linear programming problems presented before. The graphical method is useful only for problems involving.
Dr. Sana’a Wafa Al-Sayegh
Computational Methods for Management and Economics Carla Gomes Module 6a Introduction to Simplex (Textbook – Hillier and Lieberman)
L16 LP part2 Homework Review N design variables, m equations Summary 1.
BA 452 Lesson A.2 Solving Linear Programs 1 1ReadingsReadings Chapter 2 An Introduction to Linear Programming.
OR Simplex method (algebraic interpretation) Add slack variables( 여유변수 ) to each constraint to convert them to equations. (We may refer it as.
Linear Programming Using the Excel Solver
The Simplex Method: Standard Maximization Problems
Operation Research Chapter 3 Simplex Method.
The Simplex Method.
Linear Programming Applications
D Nagesh Kumar, IIScOptimization Methods: M2L5 1 Optimization using Calculus Kuhn-Tucker Conditions.
5.6 Maximization and Minimization with Mixed Problem Constraints
D Nagesh Kumar, IIScOptimization Methods: M7L1 1 Integer Programming All Integer Linear Programming.
D Nagesh Kumar, IIScOptimization Methods: M3L1 1 Linear Programming Preliminaries.
D Nagesh Kumar, IIScOptimization Methods: M3L4 1 Linear Programming Simplex method - II.
Linear Programming Applications
D Nagesh Kumar, IIScOptimization Methods: M3L6 1 Linear Programming Other Algorithms.
D Nagesh Kumar, IIScOptimization Methods: M2L3 1 Optimization using Calculus Optimization of Functions of Multiple Variables: Unconstrained Optimization.
MIT and James Orlin © Chapter 3. The simplex algorithm Putting Linear Programs into standard form Introduction to Simplex Algorithm.
Solver & Optimization Problems n An optimization problem is a problem in which we wish to determine the best values for decision variables that will maximize.
START EXCEL BUILD OR RETRIEVE YOUR OPTIMIZATION MODEL SAVE YOUR WORKBOOK!! CHOOSE “Solver…” IN THE “Tools” MENU SPECIFY IN SOLVER DIALOG BOX: 1.CELL TO.
Linear Programming - Standard Form
Chapter 3 Linear Programming Methods 高等作業研究 高等作業研究 ( 一 ) Chapter 3 Linear Programming Methods (II)
Chapter Topics Computer Solution Sensitivity Analysis
Chapter 6 Linear Programming: The Simplex Method
Operations Research Assistant Professor Dr. Sana’a Wafa Al-Sayegh 2 nd Semester ITGD4207 University of Palestine.
Simplex method (algebraic interpretation)
Simplex Algorithm.Big M Method
Barnett/Ziegler/Byleen Finite Mathematics 11e1 Learning Objectives for Section 6.4 The student will be able to set up and solve linear programming problems.
Kerimcan OzcanMNGT 379 Operations Research1 Linear Programming: The Simplex Method Chapter 5.
1 1 © 2003 Thomson  /South-Western Slide Slides Prepared by JOHN S. LOUCKS St. Edward’s University.
1 1 © 2003 Thomson  /South-Western Slide Slides Prepared by JOHN S. LOUCKS St. Edward’s University.
Chapter 6 Linear Programming: The Simplex Method Section R Review.
Solving Linear Programming Problems: The Simplex Method
Business Mathematics MTH-367 Lecture 15. Chapter 11 The Simplex and Computer Solutions Methods continued.
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.
1 Max 8X 1 + 5X 2 (Weekly profit) subject to 2X 1 + 1X 2  1000 (Plastic) 3X 1 + 4X 2  2400 (Production Time) X 1 + X 2  700 (Total production) X 1.
D Nagesh Kumar, IIScOptimization Methods: M3L2 1 Linear Programming Graphical method.
Linear Programming Revised Simplex Method, Duality of LP problems and Sensitivity analysis D Nagesh Kumar, IISc Optimization Methods: M3L5.
Mechanical Engineering Department 1 سورة النحل (78)
1 1 Slide © 2005 Thomson/South-Western Linear Programming: The Simplex Method n An Overview of the Simplex Method n Standard Form n Tableau Form n Setting.
Chapter 4 Linear Programming: The Simplex Method
Chapter 6 Linear Programming: The Simplex Method Section 4 Maximization and Minimization with Problem Constraints.
D Nagesh Kumar, IIScOptimization Methods: M2L4 1 Optimization using Calculus Optimization of Functions of Multiple Variables subject to Equality Constraints.
D Nagesh Kumar, IIScOptimization Methods: M4L4 1 Linear Programming Applications Structural & Water Resources Problems.
Gomory Cuts Updated 25 March Example ILP Example taken from “Operations Research: An Introduction” by Hamdy A. Taha (8 th Edition)“Operations Research:
D Nagesh Kumar, IIScOptimization Methods: M7L2 1 Integer Programming Mixed Integer Linear Programming.
OR Simplex method (algebraic interpretation) Add slack variables( 여유변수 ) to each constraint to convert them to equations. (We may refer it as.
Simplex Method for solving LP problems with two variables.
3 Components for a Spreadsheet Optimization Problem  There is one cell which can be identified as the Target or Set Cell, the single objective of the.
Linear Programming and Applications
(i) Preliminaries D Nagesh Kumar, IISc Water Resources Planning and Management: M3L1 Linear Programming and Applications.
D Nagesh Kumar, IIScOptimization Methods: M8L1 1 Advanced Topics in Optimization Piecewise Linear Approximation of a Nonlinear Function.
Copyright © 2006 Brooks/Cole, a division of Thomson Learning, Inc. Linear Programming: An Algebraic Approach 4 The Simplex Method with Standard Maximization.
Business Mathematics MTH-367 Lecture 14. Last Lecture Summary: Finished Sec and Sec.10.3 Alternative Optimal Solutions No Feasible Solution and.
(iii) Simplex method - I D Nagesh Kumar, IISc Water Resources Planning and Management: M3L3 Linear Programming and Applications.
The Simplex Method. and Maximize Subject to From a geometric viewpoint : CPF solutions (Corner-Point Feasible) : Corner-point infeasible solutions 0.
Stat 261 Two phase method.
Linear Programming Revised Simplex Method, Duality of LP problems and Sensitivity analysis D Nagesh Kumar, IISc Optimization Methods: M3L5.
Linear programming Simplex method.
Gomory Cuts Updated 25 March 2009.
Chapter 4 Linear Programming: The Simplex Method
Linear programming Simplex method.
Presentation transcript:

D Nagesh Kumar, IIScOptimization Methods: M4L1 1 Linear Programming Applications Software for Linear Programming

D Nagesh Kumar, IIScOptimization Methods: M4L1 2 Objectives Use of software to solve LP problems MMO Software with example  Graphical Method  Simplex Method Simplex method using optimization toolbox of MATLAB

D Nagesh Kumar, IIScOptimization Methods: M4L1 3 MMO Software Mathematical Models for Optimization An MS-DOS based software Used to solve different optimization problems Graphical method and Simplex method will be discussed. Installation – Download the file “MMO.ZIP” and unzip it in a folder in the PC – Open this folder and double click on the application file named as “START”. It will open the MMO software

D Nagesh Kumar, IIScOptimization Methods: M4L1 4 Working with MMO Opening Screen

D Nagesh Kumar, IIScOptimization Methods: M4L1 5 Working with MMO Starting Screen SOLUTION METHOD: GRAPHIC/ SIMPLEX

D Nagesh Kumar, IIScOptimization Methods: M4L1 6 Graphical Method Data Entry

D Nagesh Kumar, IIScOptimization Methods: M4L1 7 Data Entry: Few Notes Free Form Entry: Write the equation at the prompted input. Tabular Entry: Spreadsheet style. Only the coefficients are to be entered, not the variables. All variables must appear in the objective function (even those with a 0 coefficient) Constraints can be entered in any order; variables with 0 coefficients do not have to be entered Constraints may not have negative right-hand-sides (multiply by -1 to convert them before entering) When entering inequalities using, it is not necessary to add the equal sign (=) Non-negativity constraints are assumed and need not be entered

D Nagesh Kumar, IIScOptimization Methods: M4L1 8 Example Let us consider the following problem Note: The second constraint is to be multiplied by -1 while entering, i.e.

D Nagesh Kumar, IIScOptimization Methods: M4L1 9 Steps in MMO Software Select ‘Free Form Entry’ and Select ‘TYPE OF PROBLEM’ as ‘MAX’ Enter the problem as shown Write ‘go’ at the last line of the constraints Press enter Checking the proper entry of the problem – If any mistake is found, select ‘NO’ and correct the mistake – If everything is ok, select ‘YES’ and press the enter key

D Nagesh Kumar, IIScOptimization Methods: M4L1 10 Solution Z=15.67 x 1 =2.33 x 2 =3.67 F1: Redraw F2: Rescale F3: Move Objective Function Line F4: Shade Feasible Region F5: Show Feasible Points F6: Show Optimal Solution Point F10: Show Graphical LP Menu (GPL)

D Nagesh Kumar, IIScOptimization Methods: M4L1 11 Graphical LP Menu

D Nagesh Kumar, IIScOptimization Methods: M4L1 12 Extreme points and feasible extreme points

D Nagesh Kumar, IIScOptimization Methods: M4L1 13 Simplex Method using MMO Simplex method can be used for any number of variables Select SIMPLEX and press enter. As before, screen for “data entry method” will appear The data entry is exactly same as discussed before.

D Nagesh Kumar, IIScOptimization Methods: M4L1 14 Example Let us consider the same problem. (However, a problem with more than two decision variables can also be taken)

D Nagesh Kumar, IIScOptimization Methods: M4L1 15 Slack, surplus and artificial variables There are three additional slack variables

D Nagesh Kumar, IIScOptimization Methods: M4L1 16 Different options for Simplex tableau No Tableau: Shows direct solutions All Tableau: Shows all simplex tableau one by one Final Tableau: Shows only the final simplex tableau directly

D Nagesh Kumar, IIScOptimization Methods: M4L1 17 Final Simplex tableau and solution Final Solution Z=15.67 x 1 =2.33 x 2 =3.67

D Nagesh Kumar, IIScOptimization Methods: M4L1 18 MATLAB Toolbox for Linear Programming Very popular and efficient Includes different types of optimization techniques To use the simplex method – set the option as options = optimset ('LargeScale', 'off', 'Simplex', 'on') – then a function called ‘linprog’ is to be used

D Nagesh Kumar, IIScOptimization Methods: M4L1 19 MATLAB Toolbox for Linear Programming

D Nagesh Kumar, IIScOptimization Methods: M4L1 20 MATLAB Toolbox for Linear Programming

D Nagesh Kumar, IIScOptimization Methods: M4L1 21 Example Let us consider the same problem as before Note: The maximization problem should be converted to minimization problem in MATLAB

D Nagesh Kumar, IIScOptimization Methods: M4L1 22 Example… contd. Thus,

D Nagesh Kumar, IIScOptimization Methods: M4L1 23 Example… contd. MATLAB code clear all f=[-2 -3]; %Converted to minimization problem A=[1 0;-1 2;1 1]; b=[5 5 6]; lb=[0 0]; options = optimset ('LargeScale', 'off', 'Simplex', 'on'); [x, fval]=linprog (f, A, b, [ ], [ ], lb ); Z = -fval %Multiplied by -1 x Solution Z = with x 1 = and x 2 = 3.667

D Nagesh Kumar, IIScOptimization Methods: M4L1 24 Thank You