1 System Planning 2013 Lecture 7: Optimization Appendix A Contents: –General about optimization –Formulating optimization problems –Linear Programming.

Slides:



Advertisements
Similar presentations
1 LP, extended maxflow, TRW OR: How to understand Vladimirs most recent work Ramin Zabih Cornell University.
Advertisements

Duality for linear programming. Illustration of the notion Consider an enterprise producing r items: f k = demand for the item k =1,…, r using s components:
Optimization problems using excel solver
Geometry and Theory of LP Standard (Inequality) Primal Problem: Dual Problem:
Linear Programming Problem
Linear Programming. Introduction: Linear Programming deals with the optimization (max. or min.) of a function of variables, known as ‘objective function’,
Linear Programming Problem
Session II – Introduction to Linear Programming
Introduction to Algorithms
The Simplex Method The geometric method of solving linear programming problems presented before. The graphical method is useful only for problems involving.
MATHEMATICS 3 Operational Analysis Štefan Berežný Applied informatics Košice
1 Introduction to Linear Programming. 2 Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. X1X2X3X4X1X2X3X4.
Dragan Jovicic Harvinder Singh
Optimization of thermal processes2007/2008 Optimization of thermal processes Maciej Marek Czestochowa University of Technology Institute of Thermal Machinery.
CSCI 573 Linear and Mixed Integer Programming Sven Koenig.
Basic Feasible Solutions: Recap MS&E 211. WILL FOLLOW A CELEBRATED INTELLECTUAL TEACHING TRADITION.
Chapter 6 Linear Programming: The Simplex Method Section 3 The Dual Problem: Minimization with Problem Constraints of the Form ≥
Chapter 6 Linear Programming: The Simplex Method
Duality Dual problem Duality Theorem Complementary Slackness
Finite Mathematics & Its Applications, 10/e by Goldstein/Schneider/SiegelCopyright © 2010 Pearson Education, Inc. 1 of 99 Chapter 4 The Simplex Method.
Linear Programming. Linear programming A technique that allows decision makers to solve maximization and minimization problems where there are certain.
Optimization Linear Programming and Simplex Method
Chapter 4 The Simplex Method
1 Linear Programming Supplements (Optional). 2 Standard Form LP (a.k.a. First Primal Form) Strictly ≤ All x j 's are non-negative.
Linear-Programming Applications
Stevenson and Ozgur First Edition Introduction to Management Science with Spreadsheets McGraw-Hill/Irwin Copyright © 2007 by The McGraw-Hill Companies,
Linear Programming Chapter 13 Supplement.
1 System planning 2013 Lecture L8: Short term planning of hydro systems Chapter Contents: –General about short term planning –General about hydropower.
Mathematical Programming Cht. 2, 3, 4, 5, 9, 10.
STDM - Linear Programming 1 By Isuru Manawadu B.Sc in Accounting Sp. (USJP), ACA, AFM
1 DSCI 3023 Linear Programming Developed by Dantzig in the late 1940’s A mathematical method of allocating scarce resources to achieve a single objective.
Introduction to Operations Research
QMB 4701 MANAGERIAL OPERATIONS ANALYSIS
Chapter 6 Linear Programming: The Simplex Method Section 3 The Dual Problem: Minimization with Problem Constraints of the Form ≥
Linear Programming Erasmus Mobility Program (24Apr2012) Pollack Mihály Engineering Faculty (PMMK) University of Pécs João Miranda
Advanced Operations Research Models Instructor: Dr. A. Seifi Teaching Assistant: Golbarg Kazemi 1.
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.
The Simplex Algorithm 虞台文 大同大學資工所 智慧型多媒體研究室. Content Basic Feasible Solutions The Geometry of Linear Programs Moving From Bfs to Bfs Organization of a.
Barnett/Ziegler/Byleen Finite Mathematics 11e1 Learning Objectives for Section 6.3 The student will be able to formulate the dual problem. The student.
Part 3 Linear Programming 3.3 Theoretical Analysis.
Approximation Algorithms Department of Mathematics and Computer Science Drexel University.
OR Chapter 8. General LP Problems Converting other forms to general LP problem : min c’x  - max (-c)’x   = by adding a nonnegative slack variable.
C&O 355 Lecture 7 N. Harvey TexPoint fonts used in EMF. Read the TexPoint manual before you delete this box.: A A.
IT Applications for Decision Making. Operations Research Initiated in England during the world war II Make scientifically based decisions regarding the.
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.
8/14/04 J. Bard and J. W. Barnes Operations Research Models and Methods Copyright All rights reserved Lecture 6 – Integer Programming Models Topics.
Linear Programming Short-run decision making model –Optimizing technique –Purely mathematical Product prices and input prices fixed Multi-product production.
Linear Programming Department of Business Administration FALL by Asst. Prof. Sami Fethi.
Linear Programming. George Dantzig 1947 NarendraKarmarkar Pioneers of LP.
1 Optimization Linear Programming and Simplex Method.
Topics in Computational Sustainability Optimization: Intro to Linear programming.
. Introduction to Operations Research 1- Definition of Operations Research Operations research is the science of decision making and its applications.
Part 3 Linear Programming 3.3 Theoretical Analysis.
Introduction to Linear Programming Romil Jain. The Nutrition Problem Each fruit contains different nutrients Each fruit has different cost An apple a.
Linear Programming for Solving the DSS Problems
Chap 10. Sensitivity Analysis
Linear Programming Dr. T. T. Kachwala.
EMGT 6412/MATH 6665 Mathematical Programming Spring 2016
6.5 Stochastic Prog. and Benders’ decomposition
MBA 651 Quantitative Methods for Decision Making
Duality for linear programming.
Duality Theory and Sensitivity Analysis
Part 3 Linear Programming
Linear Programming I: Simplex method
Lecture 4 Part I Mohamed A. M. A..
Linear Programming Problem
6.5 Stochastic Prog. and Benders’ decomposition
Chapter 6. Large Scale Optimization
Linear Programming.
Presentation transcript:

1 System Planning 2013 Lecture 7: Optimization Appendix A Contents: –General about optimization –Formulating optimization problems –Linear Programming (LP) –Mixed Integer Linear Programming (MILP)

2 Optimization – General Discipline in applied mathematics Used when: –Want to maximize or minimize something (e.g. profit or cost) under various conditions (e.g. generation capacities, transmission limits)

3 Optimization – General Typical problems In what sequence should parts be produced on a machine in order to minimize the change-over time? How can a dress manufacturer lay out its patterns on rolls of cloth to minimize wasted material? How many elevators should be installed in a new office building to achieve an acceptable expected waiting time? What is the lowest-cost formula for chicken food which will provide required quantities of necessary minerals and other nutrients? What is the generation plan for the power plants during the next six hours?

4 Optimization - General The general optimization problem: f(x) : objective function x : optimization variables (vector) g(x), h(x) : constraints (vectors) and : variabel limits (vector) Defines the feasible set

5 Optimization – Formulation Formulation of optimization problems: 1.Describe the problem in words: Think through the problem 2.Define symbols Review the parameters and variables involved 3.Write the problem mathematically Translate the problem defined in words to mathematics

6 Optimization – Formulation The problem: A manufacturer owns a number of factories. How should the manufacturer ship his goods to the customers??

7 Optimization – Formulation 1.The problem in words: How should the merchandise be shipped in order to minimize the transportation costs? The following must be fulfilled: The factories cannot produce more than their production capacities. The customers must at least receive their demand

8 2. Define symbols: Index and parameters: m factories, factory i has capacity a i n customers, customer j demand b j units of the commodity The transportation cost from factory i to customer j is c ij per unit Variables Let x ij, i = 1...m, j = 1...n denote the number of units of the commodity shipped from factory i to customer j Optimization – Formulation

9 3. Mathematical formulation: Objective function Transportation cost: Constraints Production capacity: Demand: Variable limits: Optimization – Formulation

10 The optimization problem: Optimization – Formulation

11 LP – General Linear Programming problems (LP problems) Class of optimization problems with linear objective function and constraints All LP problems can be written as (standard form):

12 LP – General LP problems will here be explained through examples (similar as in Appendix A) Will have to look at the following: –Extreme points –Slack variables –Non existing solution –Not active constraints –No finite solution or unbounded problems –Degenerated solution –Flat optimum –Duality –Solution methods

13 LP – Example The problem:

14 LP – Example Optimum in: x 1 +x 2  2 4x 1 +12x 2  12 x 1  0 x 2  0 z = 20 z = 30 z = 40 Objective: x x

15 LP – Extreme points The “corners” of the feasible set are called extreme points Optimum is always reached in one or more extreme points! x 1 +x 2  2 4x 1 +12x 2  12 x 1  0 x 2  0 z = 20 z = 30 z = 40 x x

16 LP – Slack variables LP problem on standard form: Introduce slack variables in order to write inequality constraints using equality

17 LP – Slack variables Without slack variables: ( Ax  b ) With slack variables: ( Ax = b )

18 Can happen that the constraints makes no solution feasible! (Bad formulation of problem) New constraint LP – Non existing solution

19 B: Feasible set defined by (c) A: Feasible set defined by (a) & (b) x 1 +x 2  2 4x 1 +12x 2  12 x 1  0 x 2  0 x x (a) (b) x 1 +x 2  1 (c) Feasible set is empty! LP – Non existing solution

20 LP – Not active constraints Some constraints might not be active in optimum. New constraint

21 x 2 x x 1 +x 2  2 x 2  0 4x 1 +12x 2  12 x 1  0 z = 20 z = 30 z = 40 x 1 +x 2  7 Not active constraints Active constraints LP – Not active constraints

22 LP – No finite solution If the constraints don’t limit the objective: | z|   New objective function

23 x 1 +x 2  2 x 2  0 4x 1 +12x 2  12 x 1  0 x 2 x z = -5 z = -4 z = -3 min z  -  LP – No finite solution

24 LP – Degenerated solution More than one extreme point can be optimal. All linear combinations of these points are then also optimal New objective

25 x 1 +x 2  2 x 2  0 4x 1 +12x 2  12 x 1  0 x z = 30 z = 40 z = 50 The line between the extreme points are also optimal solutions x 1 LP – Degenerated solution

26 LP – Flat optimum A number of extreme points can have almost the same objective function value. New objective

27 LP – Flat optimum x 1 +x 2  2 x 2  0 4x 1 +12x 2  12 x 1  0 x z = 30 z = 40 z = 50 x 1 z = z =

28 LP – Duality All LP problems (primal problem) have a corresponding dual problem are called dual variables Primal problem: Dual problem:

29 LP – Duality Theorem (strong duality): If the primal problem has an optimal solution, then also the dual problem has an optimal solution and the objective values of these solutions are the same.

30 LP – Duality Q: What does the dual variables describe? A: Dual variables = Marginal value of the constraint that the dual variable represents, i.e. how the objective function value changes when the right-hand side of the constraint changes One dual variable for each constraint!

31 LP – Duality x 2 x x 1 +x 2  2 x 2  0 4x 1 +12x 2  12 x 1  0 z = 20 z = 30 z = x 1 +x 2  7 3 In optimum: 1 > 0 (active) 2 > 0 (active) 3 = 0 (not active)

32 Dual variables Small changes in right-hand side  b  Change in objective function value  z: LP – Duality  z = T  b

33 MILP – General Mixed Integer Linear Programming problems (MILP problems) Class of optimization problems with linear objective function and constraints Some variables can only take integer values

34 MILP – Example Optimum in: x 1 +x 2  2 4x 1 +12x 2  12 x 1  0 x 2  0 Objective: x x z = 20 z = 30 z = 40

35 MILP – Solving Easy to implement integer variables. Hard to solve the problems. –Execution times can increase exponentially with the number of integer variables Avoid integer variables if possible! Special case of integer variables: Binary variables x  {0,1}

36 MILP – Example Minimize the cost for buying ”something” Variable, x : Quantity of ”something”, x  0. Not constant cost per unit - cost function. For example: Discount when buying more than a specified quantity: Cost [SEK] Number of ”units” xbxb x1x1 x2x2 Split x into two different variables, x 1 and x 2. Observe that x 1 ≤ x b. Also note that both x 1 and x 2 are  0.

37 MILP – Example Cheaper to buy in segment 2  Must force the problem to fill the first segment before entering segment 2. Can be performed by introducing a binary variable. Cost [SEK] Number of ”units” xbxb x1x1 x2x2

38 MILP – Example Introduce the following constraints: s=0s=1 Cost [SEK] Number of ”units” xbxb x1x1 x2x2 Check if s=0 : Check if s=1 : where M is an arbitrarely large number. Let s be an integer variable indicating whether being in segment 1 or 2.

39 LP – Solution methods Simplex: Returns optimum in extreme point (also when degenerated solution) Interior point methods: If degenerated solution: Returns solution between two extreme points

40 LP – Solution methods x 1 +x 2  2 x 2  0 4x 1 +12x 2  12 x 1  0 x z = 30 z = 40 z = 50 Simplex Interior point method

41 PROBLEM 11 - Solutions to LP problems Assume that readymade software is used to solve an LP problem. In which of the following cases do you get an optimal solution to the LP problem and in which cases do you have to reformulate the problem (or correct an error in the code). a) The problem has no feasible solution. b) The problem is degenerated. c) The problem does not have a finite solution.