1 1 Modeling Flows John H. Vande Vate Spring, 2006.

Slides:



Advertisements
Similar presentations
Facility Location Decisions
Advertisements

Optimization problems using excel solver
1 Material to Cover  relationship between different types of models  incorrect to round real to integer variables  logical relationship: site selection.
Logistics Network Configuration
Management Science 461 Lecture 6 – Network Flow Problems October 21, 2008.
Spring 02 Vande Vate 1 1 Modeling Service When Transport is restricted to Load-Driven Pool Points in Retail Distribution John Vande Vate Spring.
Modeling Rich Vehicle Routing Problems TIEJ601 Postgraduate Seminar Tuukka Puranen October 19 th 2009.
Vehicle Routing & Scheduling: Part 1
Nonlinear Programming
Basic Feasible Solutions: Recap MS&E 211. WILL FOLLOW A CELEBRATED INTELLECTUAL TEACHING TRADITION.
Lecture 17: Network Models/ Inventory Problems AGEC 352 Spring 2011 – March 28 R. Keeney.
Non Linear Programming 1
Math443/543 Mathematical Modeling and Optimization
Vehicle Routing & Scheduling
Supply Chain Design Problem Tuukka Puranen Postgraduate Seminar in Information Technology Wednesday, March 26, 2009.
Penn ESE535 Spring DeHon 1 ESE535: Electronic Design Automation Day 5: February 2, 2009 Architecture Synthesis (Provisioning, Allocation)
Supply Chain Operations: Making and Delivering
Minimum Cost Flow Lecture 5: Jan 25. Problems Recap Bipartite matchings General matchings Maximum flows Stable matchings Shortest paths Minimum spanning.
An Inventory-Location Model: Formulation, Solution Algorithm and Computational Results Mark S. Daskin, Collete R. Coullard and Zuo-Jun Max Shen presented.
Penn ESE535 Spring DeHon 1 ESE535: Electronic Design Automation Day 5: February 2, 2009 Architecture Synthesis (Provisioning, Allocation)
Transportation Model (Powerco) Send electric power from power plants to cities where power is needed at minimum cost Transportation between supply and.
Max-flow/min-cut theorem Theorem: For each network with one source and one sink, the maximum flow from the source to the destination is equal to the minimal.
Network Models II Shortest Path Cross Docking Enhance Modeling Skills Modeling with AMPL Spring 03 Vande Vate.
1 1 Summary of First Section: Deterministic Analysis John H. Vande Vate Spring, 2007.
Supply Chain Planning Dinesh Garg Indian Institute of Science Bangalore-India September 27, 2003 Foundations of Global Supply Chain Management.
TRANSPORTATION MANAGEMENT
1 1 Transportation & Supply Chain Costs John H. Vande Vate Spring, 2001.
1 ESI 6417 Linear Programming and Network Optimization Fall 2003 Ravindra K. Ahuja 370 Weil Hall, Dept. of ISE
1 Chapter-4: Network Flow Modeling & Optimization Deep Medhi and Karthik Ramasamy August © D. Medhi & K. Ramasamy, 2007.
Spring 03 Vande Vate Hierarchy of Models Define Linear Models Modeling Examples in Excel and AMPL Linear Programming.
1 1 1-to-Many Distribution Vehicle Routing John H. Vande Vate Spring, 2005.
Linear Programming Topics General optimization model LP model and assumptions Manufacturing example Characteristics of solutions Sensitivity analysis Excel.
1 1 Project #1 Optimization Model John H. Vande Vate Spring, 2001.
A Case Study: BuyPC.com Developed by Jim Morton; UPS Professional Services David Simchi-Levi; MIT Michael Watson; LogicTools, Inc. See also BuyPC.pdf.
Spring 03 Vande Vate1 Agenda Practice Exam to help you prepare for Tuesday Questions.
Chapter 1. Formulations 1. Integer Programming  Mixed Integer Optimization Problem (or (Linear) Mixed Integer Program, MIP) min c’x + d’y Ax +
DISTRIBUTION AND NETWORK MODELS (1/2)
Weight and Cube, Frequency zExtend Network Flows to Multicommodity zMore than one product zDifferent products share conveyance capacity zDelivery Schedules.
Location decisions are strategic decisions. The reasons for location decisions Growth –Expand existing facilities –Add new facilities Production Cost.
Performance Mean 65. Solutions to Exam 2 zWe have a single commodity in warehouses around the country and wish to ship it to our customers at minimum.
1 1 Location Problems John H. Vande Vate Spring 2006.
Materials Management Systems
11DSCI4743 Physical Distribution Definition Physical distribution is the movement & storage of finished goods from the end of production to the customer.
1 1 Solutions to Exam #1 John H. Vande Vate Fall, 2002.
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.
Production Planning Basic Inventory Model Workforce Scheduling Enhance Modeling Skills Dynamic Models.
1 1 Modeling Inventory (Deterministic View) John H. Vande Vate Spring 2007.
IT Applications for Decision Making. Operations Research Initiated in England during the world war II Make scientifically based decisions regarding the.
1 An Arc-Path Model for OSPF Weight Setting Problem Dr.Jeffery Kennington Anusha Madhavan.
Network Flow Problems Example of Network Flow problems:
1 1 Transportation & Supply Chain Systems John H. Vande Vate Spring, 2001.
Spring 02 Vande Vate 1 1 Modeling Service When Transport is restricted to Load-Driven Pool Points in Retail Distribution John Vande Vate Spring.
1 1 Exam 1 John H. Vande Vate Spring, Process 80+ exams to grade Certainly errors, misunderstanding, … Happy to re-grade BUT –Only respond to.
Introduction to Integer Programming Integer programming models Thursday, April 4 Handouts: Lecture Notes.
1 1 Practice Exam #1 John H. Vande Vate Fall, 2002.
1 1 Modeling Inventory (Deterministic View) John H. Vande Vate Spring 2008.
Modeling Flows and Information
John H. Vande Vate Spring, 2001
Many-to-Many Models Multicommodity Flows
Location Case Study Shanghai GM Service Parts Part II
Location Problems John H. Vande Vate Fall,
1.206J/16.77J/ESD.215J Airline Schedule Planning
John H. Vande Vate Spring 2005
Modeling Service When Transport is restricted to Load-Driven
Network Models with Excel
Project #1 Optimization Model
Chapter 1. Formulations.
Vehicle Routing John H. Vande Vate Fall,
Modeling Flows and Information
Physical Distribution Definition
Presentation transcript:

1 1 Modeling Flows John H. Vande Vate Spring, 2006

2 2 New Project Opportunity Sponsor: CARE and Shelter First Design temporary shelters (tents) Design delivery mechanism Design logistics network Evaluate inventory levels, locations and cost

3 3 Agenda Network Flows –Review definition –Simple Transportation Model –Minimum Cost Flow Model Adding Realism –Multiple commodities –Weight, Cube, Linear Cube –Concave Costs –Modeling Time

4 4 Reference Network Flows: Theory, Algorithms, and Applications (Hardcover) by Ravindra K. Ahuja, Thomas L. Magnanti, James B. OrlinRavindra K. AhujaThomas L. MagnantiJames B. Orlin

5 5 What Are They? Specially Structured Linear Programs Each variable appears in at most two constraints –At most one constraint with a +1 coefficient –At most one constraint with a -1 coefficient Each variable may be constrained by bounds Integer Data => Integer Solutions

6 6 Transportation Model Move Goods from Plants to Warehouses Single Commodity! Plants have supplies Warehouses have demands Costs are proportional to volume shipped (this usually isn’t very realistic)

7 7 Example 2-3 (p 36) Single Product Two plants with identical production costs Two warehouses Markets allocated to warehouses for now Proportional transportation costs

8 8 Example 2-3 cont’d

9 9 Transportation Model (AMPL) Set Plants; Set Warehouses; Param Supply {Plants}; Param Demand {Warehouses}; Param Cost{Plants, Warehouses}; Var Flow{Plants, Warehouses}>= 0; minimize TotalCost: sum{p in Plants, w in Warehouses} Cost[p,w]*Flow[p,w]; s.t. WithinSupply{p in Plants}: sum{w in Warehouses} Flow[p, w] <= Supply[p]; s.t. MeetDemand{w in Warehouses}: sum{p in Plants} Flow[p, w] >= Demand[w];

10 Minimum Cost Flow Move Goods from Plants to Markets via Warehouses Single Commodity! Plants have supplies Markets have demands Costs are proportional to volume shipped

11 Example 2-3 Cont’d

12 Minimum Cost Flow Set Locs; Set Edges in Locs cross Locs; param Cost{Edges}; param NetSupply{Locs}; var FlowVol{Edges} >= 0; minimize TotalCost: sum{(f,t) in Edges} Cost[f,t]*FlowVol[f,t]; s.t. PathDefinition{loc in Locs}: sum{(loc, t) in Edges} FlowVol[loc,t] - sum{(f, loc) in Edges} FlowVol[f, loc] = NetSupply[loc];

13 Homogenous Product Must be able to interchange positions of product anywhere

14 Another New Project Milliken & Co. growing business in Asia looking to explore distribution strategy: Where should it be positioning inventories to serve that region?

15 Multi-Commodity Flows Several single commodity models You can’t to turn lead into gold –Conserve flow of each product through each facility Joined by common constraints –Often capacity on lanes –Or modeling cost (through capacity) –…

16 Multiple Products

17 Conveyance Capacity Weight Limits, e.g., 40,000 lbs Cubic Capacity (53’ trailer) –3,970 cubic ft. –Length 52' 6" –Width 99" –Height 110" Linear Cube (53’ trailer) –If load is not stackable, just floor space

18 Conveyance Capacity

19 Multiple Products Weight & Cube

20 Note No Longer a Network Model Solutions not integral Adding integrality constraints

21 Multiple Products Weight & Cube

22 Concave Cost Shipment Size Cost Cost per unit decreasing Without special constraints, what will solver do?

23 Modeling Economies of Scale Linear Programming –Greedy –Takes the High-Range Unit Cost first! Integer Programming –Add constraints to ensure first things first –Several Strategies

24 Convex Combination Weighted Average Total Cost 0 First Break Point Second Break Point $22 $27 Mid Point What will the cost be? 1/5th of the way

25 Conclusion If the Volume of Activity is a fraction of the way from one breakpoint to the next, the cost will be that same fraction of the way from the cost at the first breakpoint to the cost at the next If Volume = (1- ) Then Cost = (1- )

26 Idea Express Volume of Activity as a Weighted Average of Breakpoints Express Cost as the same Weighted Average of Costs at the Breaks Activity = Min Level 0 + Break Break Max Level 3 Cost = Cost at Min Level 0 + Cost at Break Cost at Break Cost at Max Level 3 1 =

27 Does that Do It? What can go wrong? Volume of Activity Total Cost 0 Minimum Sustainable Level Low Range Cost/Unit Mid-Range Cost/Unit High-Range Cost/Unit First Break Point Second Break Point Maximum Operating Level X

28 Role of Integer Variables Ensure we express Activity as a combination of two consecutive breakpoints var InRegion{1..NBreaks} binary; Total Cost 0 Minimum Sustainable Level First Break Point Second Break Point Maximum Operating Level InRegion[1] InRegion[2] InRegion[3]

29 Constraints Lambda[2] = 0 unless activity is between –BreakPoint[1] and BreakPoint[2] (Region[2]) or –BreakPoint[2] and BreakPoint[3] (Region[3]) Lambda[2]  InRegion[2] + InRegion[3]; Total Cost Minimum Sustainable Level First Break Point Second Break Point Maximum Operating Level InRegion[1] InRegion[2] InRegion[3] BreakPoint[0] BreakPoint[1] BreakPoint[2] BreakPoint[3]

30 We can’t go wrong Volume of Activity 0 Minimum Sustainable Level Low Range Cost/Unit Mid-Range Cost/Unit High-Range Cost/Unit First Break Point Second Break Point Maximum Operating Level X

31 Concave Costs

32 In AMPL Speak param NBreaks; param BreakPoint{0..NBreaks}; param CostAtBreak{0..NBreaks}; var Lambda{0..NBreaks} >= 0; var Activity; var Cost; s.t. DefineCost: Cost = sum{b in 0..NBreaks} CostAtBreak[b]*Lambda[b]; s.t. DefineActivity: Activity = sum{b in 0..NBreaks} BreakPoint[b]*Lambda[b]; s.t. ConvexCombination: 1 = sum{b in 0..NBreaks}Lambda[b];

33 And Activity in One Region InRegion[1] + InRegion[2] + InRegion[3]  1 Why  1? If it is in Region[2]: –Lambda[1]  InRegion[1] + InRegion[2] = 1 –Lambda[2]  InRegion[2] + InRegion[3] = 1 –Other Lambda’s are 0

34 AMPL Speak param NBreaks; param BreakPoint{0..NBreaks}; param CostAtBreak{0..NBreaks}; var Lambda{0..NBreaks} >= 0; var Activity; var Cost; s.t. DefineCost: Cost = sum{b in 0..NBreaks} CostAtBreak[b]*Lambda[b]; s.t. DefineActivity: Activity = sum{b in 0..NBreaks} BreakPoint[b]*Lambda[b]; s.t. ConvexCombination: 1 = sum{b in 0..NBreaks}Lambda[b];

35 What We Added var InRegion{1..NBreaks} binary; s.t. InOneRegion: sum{b in 1..NBreaks} InRegion[b] <= 1; s.t. EnforceConsecutive{b in 0..NBreaks-1}: Lambda[b] <= InRegion[b] + InRegion[b+1]; s.t. LastLambda: –Lambda[NBreaks] <= InRegion[NBreaks];

36 Good News! AMPL offers syntax to “automate” this Read Chapter 14 of Fourer for details > Variable; –Slope[1] before BreakPoint[1] –Slope[2] from BreakPoint[1] to BreakPoint[2] –Slope[3] after BreakPoint[2] –Has 0 cost at activity 0

37 Modeling Time Incorporating Schedules into Network Flow Models Example –Given several scheduled pick-ups and deliveries (must pick-up and deliver on- time) –Question: How many vehicles required? –Assumption: One load on a vehicle at a time (No shared capacity)

38 Example How many vehicles are required to meet a schedule of departures and returns… No shared capacity

39 Network Model

40 How to Construct the Routes? Route ending with 3 Who precedes 3? 5 does Route: 5 => 3 Who precedes 5?

41 How to Construct the Routes? Route ending with 6 Who precedes 6? 7 does Route: 2 => 7 => 6 Who precedes 7? 2 does Who precedes 2?

42 2 nd Example of Time How many vehicles? Common: –Schedule provided –No shared capacity Different: Not just one terminal

43 As a Network Problem

44 Singapore Electric Generator

45 Average Balances Assuming Smooth Demands  Averages (Starting + Ending)/2

46 Inventory Balancing Your Checkbook –Previous Balance + Income - Expenses = New Balance Modeling Dynamic Inventory –Starting Inv. + Production - Shipments = Ending Inv.

47 Singapore Electric Generator

48 Network Model Ending Inv = Calculated Ending Inv Prod. Qty <= Production Limits FinalInv >= MinimumEndingInv Bounds

49 Network Model Ending Inv = Calculated Ending Inv How Many constraints is this? Which constraints does Ending Inv for Jan appear in? With what coefficients? Which constraints does Production Qty in February appear in?

50 Summary Network Flows –Transportation Supply & Demand –Minimum Cost Flows Supply, Demand &Flow conservation Multicommodity Flows –Conserve flow of each commodity Weight, Cube & Conveyances –Not a network flow model –Non-integral solutions Non-Linear Costs –Requires integer variables Modeling Time

51 Next Inventory –Deterministic (predominantly) Pipeline Cycle –Stochastic (later) Safety stock safety