Easy Optimization Problems, Relaxation, Local Processing for a small subset of variables.

Slides:



Advertisements
Similar presentations
February 14, 2002 Putting Linear Programs into standard form
Advertisements

Lecture 3 Linear Programming: Tutorial Simplex Method
Operation Research Chapter 3 Simplex Method.
SIMPLEX METHOD FOR LP LP Model.
LECTURE 14 Minimization Two Phase method by Dr. Arshad zaheer
Introduction to Algorithms
Dr. Sana’a Wafa Al-Sayegh
Computational Methods for Management and Economics Carla Gomes Module 6a Introduction to Simplex (Textbook – Hillier and Lieberman)
Optimization of thermal processes2007/2008 Optimization of thermal processes Maciej Marek Czestochowa University of Technology Institute of Thermal Machinery.
Linear Programming Fundamentals Convexity Definition: Line segment joining any 2 pts lies inside shape convex NOT convex.
Easy Optimization Problems, Relaxation, Local Processing for a small subset of variables.
Computational Methods for Management and Economics Carla Gomes Module 6b Simplex Pitfalls (Textbook – Hillier and Lieberman)
Linear programming Thomas S. Ferguson University of California at Los Angeles Compressive Sensing Tutorial PART 3 Svetlana Avramov-Zamurovic January 29,
The Simplex Method: Standard Maximization Problems
The Simplex Algorithm An Algorithm for solving Linear Programming Problems.
Operation Research Chapter 3 Simplex Method.
Minimization by Dr. Arshad zaheer
DMOR Linear Programming.
Solving Linear Programs: The Simplex Method
Chapter 10: Iterative Improvement
Optimization Mechanics of the Simplex Method
Optimization Linear Programming and Simplex Method
Linear Programming (LP)
The Simplex Method.
5.6 Maximization and Minimization with Mixed Problem Constraints
MIT and James Orlin © Chapter 3. The simplex algorithm Putting Linear Programs into standard form Introduction to Simplex Algorithm.
LINEAR PROGRAMMING SIMPLEX METHOD.
1. The Simplex Method.
Chapter 6 Linear Programming: The Simplex Method
The Two-Phase Simplex Method LI Xiao-lei. Preview When a basic feasible solution is not readily available, the two-phase simplex method may be used as.
8. Linear Programming (Simplex Method) Objectives: 1.Simplex Method- Standard Maximum problem 2. (i) Greedy Rule (ii) Ratio Test (iii) Pivot Operation.
EE/Econ 458 The Simplex Method using the Tableau Method
Simplex Algorithm.Big M Method
This presentation shows how the tableau method is used to solve a simple linear programming problem in two variables: Maximising subject to two  constraints.
ECE 556 Linear Programming Ting-Yuan Wang Electrical and Computer Engineering University of Wisconsin-Madison March
Topic III The Simplex Method Setting up the Method Tabular Form Chapter(s): 4.
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.
1 1 Slide © 2000 South-Western College Publishing/ITP Slides Prepared by JOHN LOUCKS.
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.
The Simplex Method Updated 15 February Main Steps of the Simplex Method 1.Put the problem in Row-Zero Form. 2.Construct the Simplex tableau. 3.Obtain.
1 1 © 2003 Thomson  /South-Western Slide Slides Prepared by JOHN S. LOUCKS St. Edward’s University.
Public Policy Modeling Simplex Method Tuesday, October 13, 2015 Hun Myoung Park, Ph.D. Public Management & Policy Analysis Program Graduate School of International.
Simplex Method Adapting to Other Forms.  Until now, we have dealt with the standard form of the Simplex method  What if the model has a non-standard.
Solving Linear Programming Problems: The Simplex 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)
Part 4 Nonlinear Programming 4.5 Quadratic Programming (QP)
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.
Gomory Cuts Updated 25 March Example ILP Example taken from “Operations Research: An Introduction” by Hamdy A. Taha (8 th Edition)“Operations Research:
1 Simplex Method (created by George Dantzig in late 1940s) A systematic way of searching for an optimal LP solution BMGT 434, Spring 2002 Instructor: Chien-Yu.
An-Najah N. University Faculty of Engineering and Information Technology Department of Management Information systems Operations Research and Applications.
Simplex Method Simplex: a linear-programming algorithm that can solve problems having more than two decision variables. The simplex technique involves.
Part 3. Linear Programming 3.2 Algorithm. General Formulation Convex function Convex region.
Copyright © 2006 Brooks/Cole, a division of Thomson Learning, Inc. Linear Programming: An Algebraic Approach 4 The Simplex Method with Standard Maximization.
1 Optimization Linear Programming and Simplex Method.
1 Simplex algorithm. 2 The Aim of Linear Programming A Linear Programming model seeks to maximize or minimize a linear function, subject to a set of linear.
Decision Support Systems INF421 & IS Simplex: a linear-programming algorithm that can solve problems having more than two decision variables.
(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.
The minimum cost flow problem
10CS661 OPERATION RESEARCH Engineered for Tomorrow.
Chapter 4 Linear Programming: The Simplex Method
Part 3. Linear Programming
Solving Linear Programming Problems: Asst. Prof. Dr. Nergiz Kasımbeyli
Well, just how many basic
Chapter 10: Iterative Improvement
Presentation transcript:

Easy Optimization Problems, Relaxation, Local Processing for a small subset of variables

Different types of relaxation  Variable by variable relaxation – strict minimization  Changing a small subset of variables simultaneously – Window strict minimization relaxation  Stochastic relaxation – may increase the energy – should be followed by strict minimization

Easy to solve problems  Quadratic functional with / without linear equality constraints  Solve a linear system of equations  Quadratization of the functional: P=1, P>2  Linearization of the constraints: P=2  Inequality constraints: active set method  Linear functional and linear constraints  Linearization of the quadratic functional

Linear programming minimize/maximize a linear function under equality/inequality linear constraints  Standard form:  The region satisfying all the constraints is the feasible region and it is convex

The basic mechanism of the simplex method: A simple example

Linear programming (cont.)  The number of corner points is finite  The global maximum is at the corner point in which Z(x) is greater or equal to the value of Z at all adjacent corner points  The simplex method (Dantzig 1948) starts at a feasible corner point and visited a sequence of corner points until a maximum is obtained  #of iterations is almost always O(M) or O(N) whichever is larger, but can become exponential for pathological cases

The basic mechanism of the simplex method: A simple example  Standard form without equality constraints  Start at the origin: always a feasible corner point  N=2, M=3 at most 10 corner points, but only 5 are feasible  at (x 1,x 2 )=(0,0) the two last constraints intersect

The basic mechanism of the simplex method: A simple example  Add slack variables which transform inequality constraints to equality constraints  Start at the origin: (x 1,x 2,s 1,s 2,s 3 )=(0,0,2,3,4), Z=0  move to another corner point by letting, say, x 1 grow  x 1 may grow until it hits another corner point, in which a different constraint holds => setting some s i =0

The basic mechanism of the simplex method: A simple example  Divide all variables into two groups: basic/nonbasic  At the origin: (x 1,x 2,s 1,s 2,s 3 )=(0,0,2,3,4)  Choose a nonbasic that maximizes Z: x 1, this is the entering basic variable  x 1 is increased until it hits the constraint  There, x 1 =2 => s 1 =0 and this is the leaving basic variable  At (2,0): (x 1,x 2,s 1,s 2,s 3 )=(2,0,0,3,4), Z=30  Update the equations and continue until no further increase in Z is available  Automatic exchange of variables: Simplex Tableau

Simplex Tableau with inequality constraints In proper form:  Exactly 1 basic variable per equation  The coefficient of each basic variable is 1 and this is the only non zero entry in its column  The RHS reveal the values of all basic variables  The entering basic variable has the most negative entry in the 0 th row (for the objective Z)  The leaving basic variable is the one that minimizes RHS/coefficient of entering variable  Set the pivot to 1 and use it to eliminate all other non zeros in its column  The maximum is achieved when the 0 th row 0

s 1 s 2 s 3 s1s2s3s1s2s3 Slack variables basicnonbasic =0

entering leaving Minimum Ratio Test basic

Simplex Tableau with inequality (‘less than’), equality and ‘greater than’ constraints If an equality constraints are involved, e.g., x 1 +x 2 =4  The origin is not feasible  Add an artificial variable to each equality constraint: x 1 +x 2 +t 1 =4 If a constraint is with ‘greater than’ sign: 3x 1 +2x 2 16  The origin is not feasible  Add a slack variable and an artificial variable to each ‘greater than’ constraint: 3x 1 +2x 2 -s 1 +t 1 =16  In order to find a starting feasible corner point for the original LP, solve a Phase 1 LP in which the objective is to minimize the sum of all artificial variables: minimize  t i until all t i =0 => feasible for the original LP

Simplex Tableau in general A general LP problem involves:  N original variables  L less than constraints  E equality constraints  G greater than constraints  Add L+G slack variables  Add E+G artificial variables  To find a starting feasible corner point for LP, solve a Phase 1 LP: minimize  t i (sum of artificial variables)  INFEASIBILE: if at the end of Phase 1  t i >0  If  t i =0 continue to solve the original LP  UNBOUNDED: an entering basic variable is unlimited

Linear programming  The Simplex method: small and large problems  Interior point methods: very large problems (Karmarker 1984, polynomial-time algorithm)  Within ML should not exceed 100 variables  Many available software: MATLAB, numerical recipes,…  Adjust your problem to the used software  Linearization of both the energy functional and the constraints: the placement problem under pair wise non-overlap constraints

Exc#6: Window relaxation for the graph drawing problem Consider the following window W of 3x3 squares containing the nodes m,n and p: m is of size 1x1 located at (2,2); n is of size 0.8x0.8 located at (3.4,3.2); p is of size 0.5x0.5 located at (2.5,3). Find a correction to the locations of m,n and p such that the quadratic energy is minimized subject to inequality constraint demands that the area of nodes at each square <= m p n (1,1) (4,4) (0.5,1.5) (5,4)

a.Calculate the current amount of nodes’ area present in each of the 9 squares b.Calculate a mkx e: the change (per unit length) in the amount of nodes’ area induced by a small change in the x direction of node m to square k, k=1,…,9. Similarly calculate a mky, a nkx, a nky, a pkx and a pky c.Write the quadratic energy E as a function of the corrections to the variables in W d.Calculate the current value of E e.Write the 9 inequalities constraints associated with each square f.Choose the active set of constraints and write the Lagrangian g.Calculate the resulting system of equations and solve it h.Does the solution seem to be reasonable? i.Choose.25 of the solution, does E decrease at that point? j.Write the linear programming formulation

Exc#6: Window relaxation for the graph drawing problem  Given a graph which is initially drawn at  Introduce a grid of mxm squares, each square of size h x by h y  Pick a window W of squares  Define by a kix (a kiy ) the change in the total area in the k’th square per small change in 1. How should a kix (a kiy ) be calculated 2. Write the quadratic energy minimization problem under equidensity constraints in W 3. Write the resulting linear system of equations 4. Write a linear programming formulation