15.057 Spring 03 Vande Vate1 Practice Final: Linear? param T; param Demand{1..T}; var InitialLevel; var GrowthRate; var Estimate{1..T}; minimize TotalError:

Slides:



Advertisements
Similar presentations
1 Material to Cover  relationship between different types of models  incorrect to round real to integer variables  logical relationship: site selection.
Advertisements

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,
Sensitivity Analysis Sensitivity analysis examines how the optimal solution will be impacted by changes in the model coefficients due to uncertainty, error.
Modeling problems with Integer Linear Programming (ILP) Name: Chuan Huang.
SOLVING LINEAR PROGRAMS USING EXCEL Dr. Ron Lembke.
Operations Management Linear Programming Module B - Part 2
Easy Optimization Problems, Relaxation, Local Processing for a small subset of variables.
Lecture 18: Topics Integer Program/Goal Program AGEC 352 Spring 2011 – April 6 R. Keeney.
1 Introduction to Linear and Integer Programming Lecture 9: Feb 14.
Introduction to Linear and Integer Programming Lecture 7: Feb 1.
Constrained Maximization
Linear Programming Integer Linear Models. When Variables Have To Be Integers Example – one time production decisions –Fractional values make no sense.
Integer Programming Difference from linear programming –Variables x i must take on integral values, not real values Lots of interesting problems can be.
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.
Linear Programming Econ Outline  Review the basic concepts of Linear Programming  Illustrate some problems which can be solved by linear programming.
LP formulation of Economic Dispatch
(Not in text).  An LP with additional constraints requiring that all the variables be integers is called an all-integer linear program (IP).  The LP.
Integer programming Branch & bound algorithm ( B&B )
Roman Keeney AGEC  In many situations, economic equations are not linear  We are usually relying on the fact that a linear equation.
1 1 1-to-1 Distribution John H. Vande Vate Spring, 2001.
Network Models II Shortest Path Cross Docking Enhance Modeling Skills Modeling with AMPL Spring 03 Vande Vate.
EMIS Lecture 3 – pages Pi Hybrids Model On Page 39 FacilitiesSales Regions OK TX MI AR LA TN 4x6=24.
Linear Programming Chapter 13 Supplement.
Arben Asllani University of Tennessee at Chattanooga Prescriptive Analytics CHAPTER 6 Business Analytics with Integer Programming Business Analytics with.
Spring 03 Vande Vate Hierarchy of Models Define Linear Models Modeling Examples in Excel and AMPL Linear Programming.
CSE543T: Algorithms for Nonlinear Optimization Yixin Chen Department of Computer Science & Engineering Washington University in St Louis Spring, 2011.
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.
1 Chapter 7 Linear Programming. 2 Linear Programming (LP) Problems Both objective function and constraints are linear. Solutions are highly structured.
Review for E&CE Find the minimal cost spanning tree for the graph below (where Values on edges represent the costs). 3 Ans. 18.
Spring 03 Vande Vate1 Agenda Practice Exam to help you prepare for Tuesday Questions.
1 1 Practice Final John H. Vande Vate Fall, 2002.
Linear Programming Advanced Math Topics Mrs. Mongold.
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:
1 1 Location Problems John H. Vande Vate Spring 2006.
Optimization unconstrained and constrained Calculus part II.
1 1 Exam I John H. Vande Vate Spring, Question 1 … centers to minimize its total transportation costs from its 2 plants to its 5 markets. We.
Lecture 8 Integer Linear Programming
1 Attractive Mathematical Representations Of Decision Problems Warren Adams 11/04/03.
Spring 02 Vande Vate 1 1 Modeling Service When Transport is restricted to Load-Driven Pool Points in Retail Distribution John Vande Vate Spring.
TU/e Algorithms (2IL15) – Lecture 12 1 Linear Programming.
Polynomial P(x) Linear Factors Solutions of P(x)=0 Zeros of P(x) P(x) = 0.
Chapter 9 Integer Programming to accompany Operations Research: Applications and Algorithms 4th edition by Wayne L. Winston Copyright (c) 2004 Brooks/Cole,
TU/e Algorithms (2IL15) – Lecture 12 1 Linear Programming.
CS4234 Optimiz(s)ation Algorithms L2 – Linear Programming.
Modeling Flows and Information
Linear Programming for Solving the DSS Problems
Linear Programming.
deterministic operations research
Stat 261 Two phase method.
Linear Programming Topics General optimization model
Linear Programming – Introduction
ADVANCED COMPUTATIONAL MODELS AND ALGORITHMS
John H. Vande Vate Spring, 2001
Solver & Optimization Problems
CSE543T: Algorithms for Nonlinear Optimization Yixin Chen, PhD Professor Department of Computer Science & Engineering Washington University in St Louis.
Graphical Analysis – the Feasible Region
Gomory Cuts Updated 25 March 2009.
Linear Programming Topics General optimization model
MIP Tools Branch and Cut with Callbacks Lazy Constraint Callback
3-3 Optimization with Linear Programming
Location Problems John H. Vande Vate Fall,
John H. Vande Vate Spring 2005
Linear Programming Integer Linear Models.
Linear Programming Integer Linear Models.
Calculus-Based Optimization AGEC 317
Modeling Flows and Information
Applied Statistical and Optimization Models
Presentation transcript:

Spring 03 Vande Vate1 Practice Final: Linear? param T; param Demand{1..T}; var InitialLevel; var GrowthRate; var Estimate{1..T}; minimize TotalError: sum{t = 1..T} (Estimate[t] -Demand[t])* (Estimate[t] -Demand[t]); s.t. DefineEstimate {t in 1..T}: Estimate[t] = InitialLevel + GrowthRate*t;

Spring 03 Vande Vate2 Linear? Set QUESTIONS; /* The set of questions */ Param AvgPctCorrect{QUESTIONS}; Param MinAverage; /* minimum average score */ Param MaxAverage; /* maximum average score */ Var Points{QUESTIONS} >= 0; Var TooHigh >= 0;Var TooLow >= 0; Minimize Error: TooHigh + TooLow; s.t. Nearly100TotalPoints: sum{q in QUESTIONS} Points[q] = 100+TooHigh -TooLow; s.t. MeetMin: (sum{q in QUESTIONS} AvgPctCorrect[q]*Points[q])/ (100+TooHigh -TooLow) >= MinAverage; s.t. MeetMax: (sum{q in QUESTIONS} AvgPctCorrect[q]*Points[q])/ (100+TooHigh -TooLow) <= MaxAverage;

Spring 03 Vande Vate3 Linear? Set POOLS; Set STORES; Set DCS; Set PRODUCTS; Param Demand{PRODUCTS, STORES}: Param CubicCapacity; Param WeightLimit; Param MaxFillTime{DCS, POOLS}; Param Weight{PRODUCTS}; Param Cube{PRODUCTS}; var WeighOut{DCS, POOLS} binary; var UseEdge{DCS, POOLS} binary; var Flow[PRODUCTS, DCS, POOLS} >= 0; var Assign{POOLS, STORES} binary;

Spring 03 Vande Vate4 Linear continued s.t. ImposeTrailerFillbyWeight{dc in DCS, pool in POOLS}: MaxFillTime[dc, pool]*sum{prd in PRODUCTS} Weight[prd]*Flow[prd, dc, pool] >= WeightLimit*WeighOut[dc, pool]*UseEdge[dc, pool]; s.t. ImposeTrailerFillbyCube{dc in DCS, pool in POOLS}: MaxFillTime[dc, pool]*sum{prd in PRODUCTS} Cube[prd]*Flow[prd, dc, pool] >= CubicCapacity*CubeOut[dc, pool]*UseEdge[dc, pool]; s.t. DefineUseEdge{prd in PRODUCTS, dc in DCS, pool in POOLS}: Flow[prd, dc, pool] <= (sum{store in STORES} Demand[prd, store])*UseEdge[dc, pool]; s.t. WeightOrCube{dc in DCS, pool in POOLS}: WeighOut[dc, pool] + CubeOut[dc, pool] = 1;

Spring 03 Vande Vate5 Linear“And” CubeOut[dc, pool]*UseEdge[dc, pool] equivalent to CubeOut[dc, pool] AND UseEdge[dc, pool] Linear Version: (CubeOut[dc, pool] + UseEdge[dc, pool] -1) Or more precisely: Var Both[dc, pool] binary Both[dc, pool] >= CubeOut[dc, pool] +UseEdge[dc, pool] -1 Both[dc, pool] <= CubeOut[dc, pool] Both[dc, pool] <= UseEdge[dc, pool]

Spring 03 Vande Vate6 Sensitivity Analysis

Spring 03 Vande Vate7 Questions What is the minimum amount by which the selling price of C would have to change before it would be attractive to produce Blend C?

Spring 03 Vande Vate8 What are the Shadow Prices of the 4 vintages? What are the units of these prices?

Spring 03 Vande Vate9 What would be the impact of losing 100 gals of Vintage 3?

Spring 03 Vande Vate10 True or False In solving an integer programming problem, Solver and CPLEX employ genetic algorithms. In solving an integer programming problem, Solver and CPLEX employ the simplex method. The set of optimal solutions to an integer program describes a convex set. The function f(x) = x2 (that's x*x) is a convex function

Spring 03 Vande Vate11 True or False The function f(x,y) = x2 + y2 (that's x*x + y*y) a convex function All polynomials are convex functions. If a real valued function f is a convex function then the function g(x) = -f(x) is a convex function

Spring 03 Vande Vate12 Restrictions & Relaxations ⌧ _____ ≤ _____ ≤ _____ ≤ _____ A. Optimal objective function value of the linear programming relaxation with integrality restrictions on some, but not all, variables. B. Optimal objective function value of the integer program. C. Optimal objective function value of the complete linear programming relaxation (no integrality restrictions). D. Optimal objective function value of the integer program if we fix the values of some of the variables.

Spring 03 Vande Vate13 Restrictions & Relaxations ⌧ Minimizing: __C___ ≤ __A__ ≤ ___B__ ≤ ___D__ A. Optimal objective function value of the linear programming relaxation with integrality restrictions on some, but not all, variables. B. Optimal objective function value of the integer program. C. Optimal objective function value of the complete linear programming relaxation (no integrality restrictions). D. Optimal objective function value of the integer program if we fix the values of some of the variables.

Spring 03 Vande Vate14 IP Modeling There are N items numbered 1, 2, …, N. If we choose item i, we earn r[i]. If we select exactly one of the items, we must pay b. You may introduce other variables if you wish. You will certainly need to add an objective (minimize total cost) and constraints. param N; # the number of items. param r{1..N}; # the revenue on each item param b; # the cost incurred if we choose exactly one item var x{1..N} binary; # x[i] is one if we choose item i and 0 otherwise.

Spring 03 Vande Vate15 IP Modeling param N; # the number of items. param r{1..N}; # the revenue on each item param b; # the cost incurred if we choose exactly one item var x{1..N} binary; # x[i] is one if we choose item i and 0 otherwise. Var All binary; # is 1 if we choose all maximize Revenue : sum{k = 1..N} r[k]*x[k] -b*All; s.t. NotNecessaryButForCompleteness{k in 1..N}: ► All <= x[k]; s.t. DidWeSelectAll: ► N*All >= sum{k in 1..N} x[k];