AGIFORS Res and YM Study Group Conference, NYC, 20001 Operations Research: Optimization, Heuristics, Simulation, and Forecasting Judy Pastor Continental.

Slides:



Advertisements
Similar presentations
Airline Schedule Optimization (Fleet Assignment I)
Advertisements

1 Material to Cover  relationship between different types of models  incorrect to round real to integer variables  logical relationship: site selection.
BU Decision Models Integer_LP1 Integer Optimization Summer 2013.
Linear Programming Problem. Introduction Linear Programming was developed by George B Dantzing in 1947 for solving military logistic operations.
Pure, Mixed-Integer, Zero-One Models
Dragan Jovicic Harvinder Singh
Operations Management Linear Programming Module B - Part 2
Crew Scheduling Housos Efthymios, Professor Computer Systems Laboratory (CSL) Electrical & Computer Engineering University of Patras.
Basic Feasible Solutions: Recap MS&E 211. WILL FOLLOW A CELEBRATED INTELLECTUAL TEACHING TRADITION.
Introduction to Linear and Integer Programming
Linear Programming and CPLEX Ting-Yuan Wang Advisor: Charlie C. Chen Department of Electrical and Computer Engineering University of Wisconsin-Madison.
Math443/543 Mathematical Modeling and Optimization
Linear Programming OPIM 310-Lecture 2 Instructor: Jose Cruz.
1 Contents college 3 en 4 Book: Appendix A.1, A.3, A.4, §3.4, §3.5, §4.1, §4.2, §4.4, §4.6 (not: §3.6 - §3.8, §4.2 - §4.3) Extra literature on resource.
Solving Linear Programming Problems Using Excel Ken S. Li Southeastern Louisiana University.
1 Maximizing Revenue with a Leg Revenue Management System E. Andrew Boyd Vice President, Research and Design PROS Revenue Management.
Airline Schedule Optimization (Fleet Assignment II) Saba Neyshabouri.
FORMULATION AND GRAPHIC METHOD
Linear Programming.
Airline Schedule Planning: Accomplishments and Opportunities Airline Schedule Planning: Accomplishments and Opportunities C. Barnhart and A. Cohn, 2004.
Stevenson and Ozgur First Edition Introduction to Management Science with Spreadsheets McGraw-Hill/Irwin Copyright © 2007 by The McGraw-Hill Companies,
1 Lecture 4 Maximal Flow Problems Set Covering Problems.
Chapter 3 Introduction to Optimization Modeling
Content : 1. Introduction 2. Traffic forecasting and traffic allocation ◦ 2.1. Traffic forecasting ◦ 2.2. Traffic allocation 3. Fleeting problems ◦ 3.1.
Introduction to Operations Research
Roman Keeney AGEC  In many situations, economic equations are not linear  We are usually relying on the fact that a linear equation.
Linear Programming Chapter 13 Supplement.
ENCI 303 Lecture PS-19 Optimization 2
Linear Programming Topics General optimization model LP model and assumptions Manufacturing example Characteristics of solutions Sensitivity analysis Excel.
1 Chapter 7 Linear Programming. 2 Linear Programming (LP) Problems Both objective function and constraints are linear. Solutions are highly structured.
Introduction A GENERAL MODEL OF SYSTEM OPTIMIZATION.
Linear Programming Data Structures and Algorithms A.G. Malamos References: Algorithms, 2006, S. Dasgupta, C. H. Papadimitriou, and U. V. Vazirani Introduction.
15.082J and 6.855J and ESD.78J Lagrangian Relaxation 2 Applications Algorithms Theory.
Chapter 1. Formulations 1. Integer Programming  Mixed Integer Optimization Problem (or (Linear) Mixed Integer Program, MIP) min c’x + d’y Ax +
Models in I.E. Lectures Introduction to Optimization Models: Shortest Paths.
WOOD 492 MODELLING FOR DECISION SUPPORT Lecture 3 Basics of the Simplex Algorithm.
To accompany Quantitative Analysis for Management, 9e by Render/Stair/Hanna 11-1 © 2006 by Prentice Hall, Inc. Upper Saddle River, NJ Chapter 11.
Chapter 2 Introduction to Linear Programming n Linear Programming Problem n Problem Formulation n A Maximization Problem n Graphical Solution Procedure.
Exact and heuristics algorithms
Two Discrete Optimization Problems Problem: The Transportation Problem.
Improving Revenue by System Integration and Cooperative Optimization Reservations & Yield Management Study Group Annual Meeting Berlin April 2002.
Integer Programming (정수계획법)
1 Inventory Control with Time-Varying Demand. 2  Week 1Introduction to Production Planning and Inventory Control  Week 2Inventory Control – Deterministic.
Log Truck Scheduling Problem
IT Applications for Decision Making. Operations Research Initiated in England during the world war II Make scientifically based decisions regarding the.
1 Optimization Techniques Constrained Optimization by Linear Programming updated NTU SY-521-N SMU EMIS 5300/7300 Systems Analysis Methods Dr.
Linear Programming Short-run decision making model –Optimizing technique –Purely mathematical Product prices and input prices fixed Multi-product production.
Airline Optimization Problems Constraint Technologies International
INTRO TO OPTIMIZATION MATH-415 Numerical Analysis 1.
IE 312 Review 1. The Process 2 Problem Model Conclusions Problem Formulation Analysis.
DEPARTMENT/SEMESTER ME VII Sem COURSE NAME Operation Research Manav Rachna College of Engg.
1 2 Linear Programming Chapter 3 3 Chapter Objectives –Requirements for a linear programming model. –Graphical representation of linear models. –Linear.
Linear Programming for Solving the DSS Problems
Linear Programming Many problems take the form of maximizing or minimizing an objective, given limited resources and competing constraints. specify the.
Nonlinear Programming Prepared by Lee Revere and John Large
Linear Programming – Introduction
Solver & Optimization Problems
The minimum cost flow problem
MBA 651 Quantitative Methods for Decision Making
1.3 Modeling with exponentially many constr.
Linear Programming.
Chapter 6. Large Scale Optimization
1.206J/16.77J/ESD.215J Airline Schedule Planning
Integer Programming (정수계획법)
Linear Programming.
Integer Programming (정수계획법)
Chapter 1. Formulations.
Chapter 6. Large Scale Optimization
REVIEW FOR EXAM 1 Chapters 3, 4, 5 & 6.
Presentation transcript:

AGIFORS Res and YM Study Group Conference, NYC, Operations Research: Optimization, Heuristics, Simulation, and Forecasting Judy Pastor Continental Airlines

AGIFORS Res and YM Study Group Conference, NYC, Operations Research “application of mathematical techniques, models, and tools to a problem within a system to yield the optimal solution” Phases of an OR Project –formulate the problem –develop math model to represent the system –solve and derive solution from model –test/validate model and solution –establish controls over the solution –put the solution to work

AGIFORS Res and YM Study Group Conference, NYC, Linear Programs - Major Tool of OR Linear Programs (LPs) are a special type of mathematical model where all relationships between parts of the system being modeled can be represented linearly (a straight line). Not always realistic, but we know how to solve LPs. May need to approximate a relationship that is slightly non-linear with a linear one. When to use: if a problem has too many dimensions and alternative solutions to evaluate all manually, use an LP to evaluate.

AGIFORS Res and YM Study Group Conference, NYC, Linear Programs - Major Tool of OR LPs can evaluate thousands, millions, etc. of different alternatives to find the one that best meets the objective of the business problem. –Fleet Assignment Model - assign aircraft to flight legs to minimize cost and maximize revenue –Revenue Management - set bid prices to maximize revenue and/or minimize spill –Crew Scheduling - schedule crew members to minimize number of crew needed and maximize utilization

AGIFORS Res and YM Study Group Conference, NYC, Linear Program Formulation Understand the system and environment to which the problem belongs Understand the problem and the objective to be achieved State the model - clear idea of problem and what can and can not be included in the model Collect Data - get data/parameters/constraints and boundaries of system and interrelationships Determine decisions - define decision variables - what do we need the model to tell us? Formulate and solve model

AGIFORS Res and YM Study Group Conference, NYC, Example: RM Network LP Problem - how many passengers of each itinerary and fare class should be accepted on each flight to achieve the maximum revenue for the flight network? Statement - the model should tell us the above Data - demand by itinerary/fare class, aircraft capacity, overbooking levels, expected revenue by itinerary/fare class Decisions - how many passengers of each itinerary/fare class to accept on each flight leg

AGIFORS Res and YM Study Group Conference, NYC, Example: RM Network LP Data Collection Two Flights: SFO-IAH, IAH-AUS Two fare classes: Y-high fare, Q-low fare Three itineraries: SFOIAH, IAHAUS, SFOAUS Six fares:YQ SFOIAH IAHAUS SFOAUS Flight capacity: SFO-IAH 124, IAH-AUS 94 No overbooking

AGIFORS Res and YM Study Group Conference, NYC, Example: RM Network LP Data Collection (continued) DemandYQ SFOIAH3090 IAHAUS5030 SFOAUS2050

AGIFORS Res and YM Study Group Conference, NYC, Example: RM Network LP Formulate Model Definition of Data: –Fset of flights = {SFOIAH, IAHAUS} findex of F (1,2) –CAP f capacity of flight f = {124, 94 } –Iset of itineraries { SFOIAH, IAHAUS, SFOAUS} –iindex of I (1,2,3) –IF f set of itineraries over flight f IF 1 ={SFOIAH,SFOAUS} IF 2 ={IAHAUS,SFOAUS} –Cset of classes {Y, Q} cindex of C (1,2) –DMD i,c demand for itinerary i and class c –FARE i,c fare for itinerary i and class c

AGIFORS Res and YM Study Group Conference, NYC, Example: RM Network LP Formulate Model Now that we have defined all the data that we know about the model, we now must define what we want the model to tell us. Problem - how many passengers of each itinerary and fare class should be accepted on each flight to achieve the maximum revenue for the flight network? Define decision variables: –X i,c # pax accepted for itinerary i and class c There are 3 itineraries and 2 classes so there are a total of 6 decision variables.

AGIFORS Res and YM Study Group Conference, NYC, Example: RM Network LP Formulate Model Many sets of values (collectively called solutions) for the six X i,c variables exist which could satisfy the constraints (formulation coming) of aircraft capacity and maximum demand. These are “feasible” solutions. Which solution do we want? Problem - how many passengers of each itinerary and fare class should be accepted on each flight to achieve the maximum revenue for the flight network? The feasible solution for this is “optimal”.

AGIFORS Res and YM Study Group Conference, NYC, Example: RM Network LP Objective Function

AGIFORS Res and YM Study Group Conference, NYC, Example: RM Network LP Objective Function & Constraints The Objective Function is an expression that defines the optimal solution, out of the many feasible solutions. We can either –MAXimize - usually used with revenue or profit or –MINimize - usually used with costs Feasible solutions must satisfy the constraints of the problem. LPs are used to allocate scarce resources in the best possible manner. Constraints define the scarcity. The scarcity in this problem involves a fixed number of seats and scarce high paying customers.

AGIFORS Res and YM Study Group Conference, NYC, Example: RM Network LP Constraints

AGIFORS Res and YM Study Group Conference, NYC, Example: RM Network LP Constraints Rules for Constraints –must be a linear expression –decision variables can be summed together but not multiplied or divided by each other –have relational operators of =, = –must be continuous Constraints define the “feasible region” - all points within the feasible region satisfy the constraints. The feasible region is convex. The optimal solution lies at an extreme point of the feasible region.

AGIFORS Res and YM Study Group Conference, NYC, Example: RM Network LP Cplex Input File MAX 400 X_SFOIAH_Y X_SFOIAH_Q X_IAHAUS_Y X_IAHAUS_Q X_SFOAUS_Y X_SFOAUS_Q ST CAPY_SFOIAH: X_SFOIAH_Y + X_SFOIAH_Q + X_SFOAUS_Y + X_SFOAUS_Q <= 124 CAPY_IAHAUS: X_SFOAUS_Y + X_SFOAUS_Q + X_IAHAUS_Y + X_IAHAUS_Q <=94 DMD_SFOIAH_Y: X_SFOIAH_Y <= 30 DMD_SFOIAH_Q: X_SFOIAH_Q <= 90 DMD_IAHAUS_Y: X_IAHAUS_Y <= 50 DMD_IAHAUS_Q: X_IAHAUS_Q <= 30 DMD_SFOAUS_Y: X_SFOAUS_Y <= 20 DMD_SFOAUS_Q: X_SFOAUS_Q <= 50 END

AGIFORS Res and YM Study Group Conference, NYC, Example: RM Network LP Solution - Constraints SECTION 1 - ROWS NUMBER......ROW AT...ACTIVITY... SLACK ACTIVITY..LOWER LIMIT...UPPER LIMIT..DUAL ACTIVITY 1 obj BS NONE NONE 1 2 CAPY_SFOIAH UL NONE CAPY_IAHAUS UL 94 0 NONE DMD_SFOIAH_Y UL 30 0 NONE DMD_SFOIAH_Q BS NONE DMD_IAHAUS_Y UL 50 0 NONE DMD_IAHAUS_Q BS 24 6 NONE DMD_SFOAUS_Y UL 20 0 NONE DMD_SFOAUS_Q BS 0 50 NONE 50 0 obj is the objective function value - total revenue from the small network of flights CAPY_SFOIAH and CAPY_IAHAUS are the capacity constraints. Both are at UL - upper limit with activities of 124 and 94, respectively (i.e. both flight legs are full). Dual Activity on each capacity constraint is also known as the Shadow Price of the flight. The SP of SFOIAH is 300 and the SP of IAHAUS is 100. In RM terms, this means that the value of one more seat on SFOIAH is 300 and the value of one more seat on IAHAUS is 100. Alternately, 300 and 100 also define the lowest fare that should be accepted on each leg. DMD_{SFOIAH,IAHAUS}_{Y,Q} are the demand constraints. SFOIAH_Y, IAHAUS_Y, and SFOAUS_Y are at upper level (i.e. accept all Y passengers). Reject some/all of Q.

AGIFORS Res and YM Study Group Conference, NYC, Example: RM Network LP Solution - Decision Variables SECTION 2 - COLUMNS NUMBER.....COLUMN..... AT...ACTIVITY.....INPUT COST....LOWER LIMIT...UPPER LIMIT..REDUCED COST. 10 X_SFOIAH_Y BS NONE 0 11 X_SFOIAH_Q BS NONE 0 12 X_IAHAUS_Y BS NONE 0 13 X_IAHAUS_Q BS NONE 0 14 X_SFOAUS_Y BS NONE 0 15 X_SFOAUS_Q LL NONE -80 This section of the solution report shows the values for the decision variables at the optimal solution. The LP tells us to accept 30 SFOIAH Y, 74 SFOIAH Q (reject 16), accept 50 IAHAUS Y, accept 24 IAHAUS Q (reject 6), accept 20 SFOAUS Y, and accept no SFOAUS Q. Note that the LP cut off all SFOAUS Q booking requests because their fare of 320 is less than the sum of the shadow prices of the two flights ( = 400 > 320).

AGIFORS Res and YM Study Group Conference, NYC, Example: RM Network LP Solving LPs A problem that sounds small, like our example, can balloon out into many decision variables and constraints. Computer software is available to solve linear programs. Cost of programs depends on size of problems to be solved. Excel has an Add-in to solve small LPs. CPLEX is state of the art, but more expensive. LPs with 100,000s row and columns can be solved.

AGIFORS Res and YM Study Group Conference, NYC, Example: RM Network LP Solving LPs The first method of solving LPs was invented during WWII by George Dantzig. The algorithm is called SIMPLEX. It is based on convexity theory and that the optimal solution will occur at an extreme point of the solution space Newer state of the art algorithms are based on steepest descent gradient methods and are called “interior point” methods Interior point methods can be extremely fast (much faster than SIMPLEX) for certain structures of problems

AGIFORS Res and YM Study Group Conference, NYC, Degeneracy When an LP has more than one unique way to reach an optimal objective function value, we say that the problem is “degenerate” LP solvers can detect degeneracy but only report one solution It would be nice to see all possible solutions Different solvers can “land” on different solutions of a degenerate problem, depending on solution strategy The RM Network problem is usually degenerate

AGIFORS Res and YM Study Group Conference, NYC, Other Types of Linear Optimizations MIP (Mixed Integer Programming) –is similar to LP but at least one decision variable is required to be a integer value –violates the LP rule that decision variables be continuous –is solved by “branch and bound” - solving a series of LPs that fix the integer decision variables to various integer values and comparing the resulting objective function values –is done in a smart way to avoid enumerating all possibilities –is useful, since you can not have.3 of an aircraft

AGIFORS Res and YM Study Group Conference, NYC, Other Types of Linear Optimization Network problem –is a special form of LP which turns out to be “naturally integer” –can be solved faster than an LP, using a special network optimization algorithm –is very restrictive on types of constraints that can be present in the problem Shortest Path –finds the shortest path from the source (start) to sink (end) nodes, along connecting arcs, each having a cost associated with them –is used in many applications

AGIFORS Res and YM Study Group Conference, NYC, Other Optimization Models Quadratic Program –has a quadratic objective function with linear constraints –can be applied to revenue management, because it allows fare to rise with demand within a problem price(OD) = 50 + [5*numpax(OD)] max revenue = price * numpax

AGIFORS Res and YM Study Group Conference, NYC, Other Optimization Models Non-linear Program (NLP) –can have either non-linear objective function or non- linear constraints or both –feasible region is generally not convex –much more difficult to solve –but it is worth our time to learn to solve them since world is actually non-linear most of the time –some non-linear programs can be solved with LPs or MIPs using piecewise linear functions

AGIFORS Res and YM Study Group Conference, NYC, Deterministic versus Stochastic Two broad categories of optimization models exist –deterministic parameters/data known with certainty –stochastic parameters/data know with uncertainty Deterministic models are easier to solve. Our RM LP is deterministic (we pretend we know the demand with certainty). Stochastic model are difficult to solve. In reality, we know a distribution about our demand. We get around this in real life by re-optimizing.

AGIFORS Res and YM Study Group Conference, NYC, Deterministic versus Stochastic Deterministic optimization ignores risk of being wrong about parameter/data estimates. No commercial software packages are currently available to do generalized, stochastic optimization.

AGIFORS Res and YM Study Group Conference, NYC, Heuristics Definition - educated guess When you use a heuristic to solve a problem, you have a gut feeling that it is a pretty good solution, but can not prove it mathematically You can not prove that there is not a better solution out there To qualify as an “optimal” solution, there must be a mathematical proof to say that no better solution exists

AGIFORS Res and YM Study Group Conference, NYC, Types of Heuristics “Greedy Algorithms” - also called “myopic” - nearsighted solutions. Example: in our RM Network LP, the greedy solution would be to take the highest fare passengers possible on each leg, without looking at the consequences of doing so on the connecting leg. So the greedy solution is to take the SFOAUS Q passengers at a fare of $320. But the optimal solution looks at displacement and says do not take any SFOAUS Q passengers.

AGIFORS Res and YM Study Group Conference, NYC, Heuristics Combinatorial problems can grow exponentially when the number of decisions needed to be made grows linearly. Heuristics can be used in these cases to get a good solution in a reasonable amount of time. TSP - Travelling Salesman Problem is a good example of this. EMSR is a heuristic. It is provably optimal for two fare classes, but not more. However, it gives a good answer in a finite amount of time and takes probability into account.

AGIFORS Res and YM Study Group Conference, NYC, Simulation When a problem is too complicated to be put into an LP or a solvable non-linear optimization, one way to study the problem is to simulate it under different conditions. PODS (Passenger O & D Simulation) is one. Simulation can tell us something about a set of parameters (i.e. total revenue, load factor), but does not point us in the direction of an improvement.

AGIFORS Res and YM Study Group Conference, NYC, Forecasting Types of forecasting techniques used in RM: –pick-up –booking regression –exponential smoothing Pick-up - adds average future bookings from historical observations to bookings on hand. Booking Regression - computes best fit for history of bookings on hand (independent) to final booked (dependent) –final booked = a + b*(bookings on hand)

AGIFORS Res and YM Study Group Conference, NYC, Forecasting Exponential Smoothing - similar to pick-up except the average is weighted. The most recent historical observations are weighted most heavily, decreasing for earlier observations. –recursive relationship Avg Pick Up = a * (pick up t-1 ) + (1-a) 2 * (pick up t-2 ) +... boils down to –Avg Pick Up = a * (pick up t-1 ) + (1-a) * (last fcst pick up) Problem is how to estimate a. 0<=a<=1 How much weight should be on most recent observation?