decision aid methodologies in transportationย ยท lab vi: case study โ€“freight trains management ....

40
CIVIL-557 Decision Aid Methodologies In Transportation Transport and Mobility Laboratory (TRANSP-OR) ร‰cole Polytechnique Fรฉdรฉrale de Lausanne EPFL Virginie Lurkin Lab VI: Case study โ€“ Freight Trains Management

Upload: others

Post on 25-Jul-2020

6 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Decision Aid Methodologies In Transportationย ยท Lab VI: Case study โ€“Freight Trains Management . Solution of the previous lab. F1 Customer (service costs ๐’„ ) Fixed cost (๐’‡

CIVIL-557

Decision Aid Methodologies

In Transportation

Transport and Mobility Laboratory (TRANSP-OR)

ร‰cole Polytechnique Fรฉdรฉrale de Lausanne EPFL

Virginie Lurkin

Lab VI:

Case study โ€“ Freight Trains Management

Page 2: Decision Aid Methodologies In Transportationย ยท Lab VI: Case study โ€“Freight Trains Management . Solution of the previous lab. F1 Customer (service costs ๐’„ ) Fixed cost (๐’‡

Solution of the previous lab

Page 3: Decision Aid Methodologies In Transportationย ยท Lab VI: Case study โ€“Freight Trains Management . Solution of the previous lab. F1 Customer (service costs ๐’„ ) Fixed cost (๐’‡

F1

Customer (service costs ๐’„๐’Š๐’‹) Fixed cost (๐’‡๐’Š)

Facility 1 2 3

1 1000 20 30 200

2 1000 30 40 200

3 1000 160 150 200

4 50 140 120 200

Which formulation is better?

F2

UFLP problem - solution

Page 4: Decision Aid Methodologies In Transportationย ยท Lab VI: Case study โ€“Freight Trains Management . Solution of the previous lab. F1 Customer (service costs ๐’„ ) Fixed cost (๐’‡

max 30๐‘ฅ1 + 17๐‘ฅ2 + 14๐‘ฅ3 + 11๐‘ฅ4 + 9๐‘ฅ5

๐‘ . ๐‘ก. 29๐‘ฅ1 + 20๐‘ฅ2 + 16๐‘ฅ3 + 12๐‘ฅ4 + 10๐‘ฅ5 โ‰ค 37

๐‘ฅ๐‘– โˆˆ 0,1 , โˆ€๐‘– = 1,โ€ฆ5.

IP(1)

Knapsack problem โ€“ example of solution

๐’™๐Ÿโˆ— ๐’™๐Ÿ

โˆ— ๐’™๐Ÿ‘โˆ— ๐’™๐Ÿ’

โˆ— ๐’™๐Ÿ“โˆ— ๐’›โˆ— CT

0 1 1 0 0 31 12s

Page 5: Decision Aid Methodologies In Transportationย ยท Lab VI: Case study โ€“Freight Trains Management . Solution of the previous lab. F1 Customer (service costs ๐’„ ) Fixed cost (๐’‡

max 30๐‘ฅ1 + 17๐‘ฅ2 + 14๐‘ฅ3 + 11๐‘ฅ4 + 9๐‘ฅ5

๐‘ . ๐‘ก. 29๐‘ฅ1 + 20๐‘ฅ2 + 16๐‘ฅ3 + 12๐‘ฅ4 + 10๐‘ฅ5 โ‰ค 37

๐‘ฅ๐‘– โ‰ฅ 0, โˆ€๐‘– = 1,โ€ฆ5.

LP(1)

Knapsack problem - example of solution

๐’™๐Ÿโˆ— ๐’™๐Ÿ

โˆ— ๐’™๐Ÿ‘โˆ— ๐’™๐Ÿ’

โˆ— ๐’™๐Ÿ“โˆ— ๐’›โˆ— CT

1.2759 0 0 0 0 38.28 8s

Page 6: Decision Aid Methodologies In Transportationย ยท Lab VI: Case study โ€“Freight Trains Management . Solution of the previous lab. F1 Customer (service costs ๐’„ ) Fixed cost (๐’‡

max 30๐‘ฅ1 + 17๐‘ฅ2 + 14๐‘ฅ3 + 11๐‘ฅ4 + 9๐‘ฅ5

๐‘ . ๐‘ก. 29๐‘ฅ1 + 20๐‘ฅ2 + 16๐‘ฅ3 + 12๐‘ฅ4 + 10๐‘ฅ5 โ‰ค 37

๐‘ฅ๐‘– โ‰ฅ 0, โˆ€๐‘– = 1,โ€ฆ5.

LP(1)

Knapsack problem - example of solution

๐’™๐Ÿโˆ— ๐’™๐Ÿ

โˆ— ๐’™๐Ÿ‘โˆ— ๐’™๐Ÿ’

โˆ— ๐’™๐Ÿ“โˆ— ๐’›โˆ— CT

1.2759 0 0 0 0 38.28 8s

๐’™๐Ÿ โ‰ค ๐Ÿ is the Gomory cut you obtained

Page 7: Decision Aid Methodologies In Transportationย ยท Lab VI: Case study โ€“Freight Trains Management . Solution of the previous lab. F1 Customer (service costs ๐’„ ) Fixed cost (๐’‡

max 30๐‘ฅ1 + 17๐‘ฅ2 + 14๐‘ฅ3 + 11๐‘ฅ4 + 9๐‘ฅ5

๐‘ . ๐‘ก. 29๐‘ฅ1 + 20๐‘ฅ2 + 16๐‘ฅ3 + 12๐‘ฅ4 + 10๐‘ฅ5 โ‰ค 37

๐‘ฅ๐‘– โ‰ฅ 0, โˆ€๐‘– = 1,โ€ฆ5.

LP(2)

Knapsack problem - example of solution

๐’™๐Ÿโˆ— ๐’™๐Ÿ

โˆ— ๐’™๐Ÿ‘โˆ— ๐’™๐Ÿ’

โˆ— ๐’™๐Ÿ“โˆ— ๐’›โˆ— CT

1 0 0 0.667 0 37.33 7s

๐’™๐Ÿ โ‰ค ๐Ÿ

Page 8: Decision Aid Methodologies In Transportationย ยท Lab VI: Case study โ€“Freight Trains Management . Solution of the previous lab. F1 Customer (service costs ๐’„ ) Fixed cost (๐’‡

max 30๐‘ฅ1 + 17๐‘ฅ2 + 14๐‘ฅ3 + 11๐‘ฅ4 + 9๐‘ฅ5

๐‘ . ๐‘ก. 29๐‘ฅ1 + 20๐‘ฅ2 + 16๐‘ฅ3 + 12๐‘ฅ4 + 10๐‘ฅ5 โ‰ค 37

๐‘ฅ๐‘– โ‰ฅ 0, โˆ€๐‘– = 1,โ€ฆ5.

LP(2)

Knapsack problem - example of solution

๐’™๐Ÿโˆ— ๐’™๐Ÿ

โˆ— ๐’™๐Ÿ‘โˆ— ๐’™๐Ÿ’

โˆ— ๐’™๐Ÿ“โˆ— ๐’›โˆ— CT

1 0 0 0.667 0 37.33 7s

๐’™๐Ÿ + ๐’™๐Ÿ’ โ‰ค ๐Ÿ is a cover cut

๐’™๐Ÿ โ‰ค ๐Ÿ

Page 9: Decision Aid Methodologies In Transportationย ยท Lab VI: Case study โ€“Freight Trains Management . Solution of the previous lab. F1 Customer (service costs ๐’„ ) Fixed cost (๐’‡

max 30๐‘ฅ1 + 17๐‘ฅ2 + 14๐‘ฅ3 + 11๐‘ฅ4 + 9๐‘ฅ5

๐‘ . ๐‘ก. 29๐‘ฅ1 + 20๐‘ฅ2 + 16๐‘ฅ3 + 12๐‘ฅ4 + 10๐‘ฅ5 โ‰ค 37

๐‘ฅ๐‘– โ‰ฅ 0, โˆ€๐‘– = 1,โ€ฆ5.

LP(3)

Knapsack problem - solution

๐’™๐Ÿโˆ— ๐’™๐Ÿ

โˆ— ๐’™๐Ÿ‘โˆ— ๐’™๐Ÿ’

โˆ— ๐’™๐Ÿ“โˆ— ๐’›โˆ— CT

1 0 0 0 0.8 37.2 7s

๐’™๐Ÿ + ๐’™๐Ÿ’ โ‰ค ๐Ÿ

๐’™๐Ÿ โ‰ค ๐Ÿ

Page 10: Decision Aid Methodologies In Transportationย ยท Lab VI: Case study โ€“Freight Trains Management . Solution of the previous lab. F1 Customer (service costs ๐’„ ) Fixed cost (๐’‡

max 30๐‘ฅ1 + 17๐‘ฅ2 + 14๐‘ฅ3 + 11๐‘ฅ4 + 9๐‘ฅ5

๐‘ . ๐‘ก. 29๐‘ฅ1 + 20๐‘ฅ2 + 16๐‘ฅ3 + 12๐‘ฅ4 + 10๐‘ฅ5 โ‰ค 37

๐‘ฅ๐‘– โ‰ฅ 0, โˆ€๐‘– = 1,โ€ฆ5.

LP(4)

Knapsack problem - example of solution

๐’™๐Ÿโˆ— ๐’™๐Ÿ

โˆ— ๐’™๐Ÿ‘โˆ— ๐’™๐Ÿ’

โˆ— ๐’™๐Ÿ“โˆ— ๐’›โˆ— CT

0.724 0.276 0.276 0.276 0.276 35.79 7s

๐’™๐Ÿ + ๐’™๐Ÿ“ โ‰ค ๐Ÿ

๐’™๐Ÿ + ๐’™๐Ÿ’ โ‰ค ๐Ÿ

๐’™๐Ÿ โ‰ค ๐Ÿ

๐’™๐Ÿ + ๐’™๐Ÿ‘ โ‰ค ๐Ÿ

๐’™๐Ÿ + ๐’™๐Ÿ โ‰ค ๐Ÿ

Page 11: Decision Aid Methodologies In Transportationย ยท Lab VI: Case study โ€“Freight Trains Management . Solution of the previous lab. F1 Customer (service costs ๐’„ ) Fixed cost (๐’‡

max 30๐‘ฅ1 + 17๐‘ฅ2 + 14๐‘ฅ3 + 11๐‘ฅ4 + 9๐‘ฅ5

๐‘ . ๐‘ก. 29๐‘ฅ1 + 20๐‘ฅ2 + 16๐‘ฅ3 + 12๐‘ฅ4 + 10๐‘ฅ5 โ‰ค 37

๐‘ฅ๐‘– โ‰ฅ 0, โˆ€๐‘– = 1,โ€ฆ5.

LP(4)

Knapsack problem - example of solution

๐’™๐Ÿโˆ— ๐’™๐Ÿ

โˆ— ๐’™๐Ÿ‘โˆ— ๐’™๐Ÿ’

โˆ— ๐’™๐Ÿ“โˆ— ๐’›โˆ— CT

0.724 0.276 0.276 0.276 0.276 35.79 7s

๐’™๐Ÿ + ๐’™๐Ÿ“ โ‰ค ๐Ÿ

๐’™๐Ÿ + ๐’™๐Ÿ’ โ‰ค ๐Ÿ

๐’™๐Ÿ โ‰ค ๐Ÿ

๐’™๐Ÿ + ๐’™๐Ÿ‘ โ‰ค ๐Ÿ

๐’™๐Ÿ + ๐’™๐Ÿ โ‰ค ๐Ÿ

Gomory cut on the optimal tableau of LP(4) gives me:1.24137931*x1 + 1.068965517*x2 + 0.413793103*x3 + 0.413793103*x4 <=1;

Page 12: Decision Aid Methodologies In Transportationย ยท Lab VI: Case study โ€“Freight Trains Management . Solution of the previous lab. F1 Customer (service costs ๐’„ ) Fixed cost (๐’‡

max 30๐‘ฅ1 + 17๐‘ฅ2 + 14๐‘ฅ3 + 11๐‘ฅ4 + 9๐‘ฅ5

๐‘ . ๐‘ก. 29๐‘ฅ1 + 20๐‘ฅ2 + 16๐‘ฅ3 + 12๐‘ฅ4 + 10๐‘ฅ5 โ‰ค 37

๐‘ฅ๐‘– โ‰ฅ 0, โˆ€๐‘– = 1,โ€ฆ5.

LP(5)

Knapsack problem - example of solution

๐’™๐Ÿโˆ— ๐’™๐Ÿ

โˆ— ๐’™๐Ÿ‘โˆ— ๐’™๐Ÿ’

โˆ— ๐’™๐Ÿ“โˆ— ๐’›โˆ— CT

0.252 0.063 0.747 0.747 0.747 34.07 7s

๐’™๐Ÿ + ๐’™๐Ÿ“ โ‰ค ๐Ÿ

๐’™๐Ÿ + ๐’™๐Ÿ’ โ‰ค ๐Ÿ

๐’™๐Ÿ โ‰ค ๐Ÿ

๐’™๐Ÿ + ๐’™๐Ÿ‘ โ‰ค ๐Ÿ

๐’™๐Ÿ + ๐’™๐Ÿ โ‰ค ๐Ÿ

1.24137931*x1 + 1.068965517*x2 + 0.413793103*x3 + 0.413793103*x4 <=1;

Page 13: Decision Aid Methodologies In Transportationย ยท Lab VI: Case study โ€“Freight Trains Management . Solution of the previous lab. F1 Customer (service costs ๐’„ ) Fixed cost (๐’‡

Lab 6

The Locomotive Fleet Fueling Problem

Page 14: Decision Aid Methodologies In Transportationย ยท Lab VI: Case study โ€“Freight Trains Management . Solution of the previous lab. F1 Customer (service costs ๐’„ ) Fixed cost (๐’‡

Overview

The locomotive fleet fueling problem

Problem description

MILP formulation

Simple example (2010 RAS Competition)

Assignment #6

Larger instance

Valid inequalities

Evalution of three models

Page 15: Decision Aid Methodologies In Transportationย ยท Lab VI: Case study โ€“Freight Trains Management . Solution of the previous lab. F1 Customer (service costs ๐’„ ) Fixed cost (๐’‡

2010 RAS Competition

Page 16: Decision Aid Methodologies In Transportationย ยท Lab VI: Case study โ€“Freight Trains Management . Solution of the previous lab. F1 Customer (service costs ๐’„ ) Fixed cost (๐’‡

Problem description

Page 17: Decision Aid Methodologies In Transportationย ยท Lab VI: Case study โ€“Freight Trains Management . Solution of the previous lab. F1 Customer (service costs ๐’„ ) Fixed cost (๐’‡

Problem description

Yards

o Tanker truck contracting cost

o Amount of dispensable fuel per tanker truck

o Fuel cost per gallon

Locomotives

o Schedule โ€“ sequence of stops

o Delay cost per stop

Page 18: Decision Aid Methodologies In Transportationย ยท Lab VI: Case study โ€“Freight Trains Management . Solution of the previous lab. F1 Customer (service costs ๐’„ ) Fixed cost (๐’‡

Problem description

Sets

o ๐ผ: set of locomotives (1 locomotive = 1 train)

o ๐ฝ: set of stops

o ๐พ: set of yards

o ๐‘‡: set of days

Parameters

o ๐ท๐ถ๐‘–๐‘—: delay cost ($) for locomotive ๐‘– and stop ๐‘—

o ๐ถ๐ถ: contracting cost ($/truck) for a truck for the entire planning horizon,

same for all yards

o ๐‘ƒ๐‘˜: fuel cost ($/gallon) at yard ๐‘˜

Page 19: Decision Aid Methodologies In Transportationย ยท Lab VI: Case study โ€“Freight Trains Management . Solution of the previous lab. F1 Customer (service costs ๐’„ ) Fixed cost (๐’‡

Problem description

Parameters

o ๐‘‡๐‘‡: Tanker truck capacity (in gallons) per day, same for all trucks

o ๐ฟ๐‘‡: Capacity (in gallons) of fuel tank of a locomotive, same for all

locomotives

o ๐น๐ถ๐‘–๐‘—: fuel consumption (in gallons) for a locomotive ๐‘– to go for stop ๐‘— to

stop ๐‘— + 1

o ๐‘๐‘–: set of stops for locomotive ๐‘– in the planning horizon

o ๐‘Œ๐‘Ž๐‘Ÿ๐‘‘๐‘–๐‘—: Yard used if locomotive ๐‘– refuels at stop ๐‘—

o ๐ท๐‘Ž๐‘ฆ๐‘–๐‘—: Day in which locomotive ๐‘– is at stop ๐‘—

Page 20: Decision Aid Methodologies In Transportationย ยท Lab VI: Case study โ€“Freight Trains Management . Solution of the previous lab. F1 Customer (service costs ๐’„ ) Fixed cost (๐’‡

Problem description

Decision variables

o ๐‘ฅ๐‘–๐‘— = แ‰Š1 ๐‘–๐‘“ ๐‘™๐‘œ๐‘๐‘œ๐‘š๐‘œ๐‘ก๐‘–๐‘ฃ๐‘’ ๐‘– ๐‘Ÿ๐‘’๐‘“๐‘ข๐‘’๐‘™๐‘  ๐‘Ž๐‘ก ๐‘–๐‘ก๐‘  ๐‘ ๐‘ก๐‘œ๐‘ ๐‘—0 ๐‘œ๐‘กโ„Ž๐‘’๐‘Ÿ๐‘ค๐‘–๐‘ ๐‘’

o ๐‘ฆ๐‘˜ = ๐‘›๐‘ข๐‘š๐‘๐‘’๐‘Ÿ ๐‘œ๐‘“ ๐‘“๐‘ข๐‘’๐‘™ ๐‘ก๐‘Ž๐‘›๐‘˜๐‘  ๐‘ก๐‘œ ๐‘๐‘’ ๐‘๐‘œ๐‘›๐‘ก๐‘Ÿ๐‘Ž๐‘๐‘ก๐‘’๐‘‘ ๐‘Ž๐‘ก ๐‘ฆ๐‘Ž๐‘Ÿ๐‘‘ ๐‘˜

o ๐‘“๐‘–๐‘— = ๐‘”๐‘Ž๐‘™๐‘™๐‘œ๐‘›๐‘  ๐‘œ๐‘“ ๐‘“๐‘ข๐‘’๐‘™ ๐‘Ž๐‘ž๐‘ข๐‘–๐‘Ÿ๐‘’๐‘‘ ๐‘๐‘ฆ ๐‘™๐‘œ๐‘๐‘œ๐‘š๐‘œ๐‘ก๐‘–๐‘ฃ๐‘’ ๐‘– ๐‘Ž๐‘ก ๐‘–๐‘ก๐‘  ๐‘ ๐‘ก๐‘œ๐‘ ๐‘—

o ๐‘ฃ๐‘–๐‘— = ๐‘”๐‘Ž๐‘™๐‘™๐‘œ๐‘›๐‘  ๐‘œ๐‘“ ๐‘“๐‘ข๐‘’๐‘™ ๐‘–๐‘› ๐‘กโ„Ž๐‘’ ๐‘ก๐‘Ž๐‘›๐‘˜ ๐‘œ๐‘“ ๐‘™๐‘œ๐‘๐‘œ๐‘š๐‘œ๐‘ก๐‘–๐‘ฃ๐‘’ ๐‘– ๐‘ข๐‘๐‘œ๐‘› ๐‘Ž๐‘Ÿ๐‘Ÿ๐‘–๐‘ฃ๐‘Ž๐‘™ ๐‘Ž๐‘ก ๐‘–๐‘ก๐‘  ๐‘ ๐‘ก๐‘œ๐‘ ๐‘—

Page 21: Decision Aid Methodologies In Transportationย ยท Lab VI: Case study โ€“Freight Trains Management . Solution of the previous lab. F1 Customer (service costs ๐’„ ) Fixed cost (๐’‡

MILP formulation

๐‘š๐‘–๐‘› delay costs + contracting costs + fueling costs

๐‘ . ๐‘ก.

๐‘”๐‘Ž๐‘™๐‘™๐‘œ๐‘›๐‘  ๐‘œ๐‘“ ๐‘“๐‘ข๐‘’๐‘™ ๐‘–๐‘› ๐‘กโ„Ž๐‘’ ๐‘ก๐‘Ž๐‘›๐‘˜ ๐‘œ๐‘“ ๐‘™๐‘œ๐‘๐‘œ๐‘š๐‘œ๐‘ก๐‘–๐‘ฃ๐‘’ ๐‘– ๐‘ข๐‘๐‘œ๐‘› ๐‘Ž๐‘Ÿ๐‘Ÿ๐‘–๐‘ฃ๐‘Ž๐‘™ ๐‘Ž๐‘ก ๐‘–๐‘ก๐‘  ๐‘ ๐‘ก๐‘œ๐‘ ๐‘—

๐‘”๐‘Ž๐‘™๐‘™๐‘œ๐‘›๐‘  ๐‘œ๐‘“ ๐‘“๐‘ข๐‘’๐‘™ ๐‘–๐‘› ๐‘กโ„Ž๐‘’ ๐‘ก๐‘Ž๐‘›๐‘˜ ๐‘œ๐‘“ ๐‘™๐‘œ๐‘๐‘œ๐‘š๐‘œ๐‘ก๐‘–๐‘ฃ๐‘’ ๐‘– ๐‘ข๐‘๐‘œ๐‘› ๐‘Ž๐‘Ÿ๐‘Ÿ๐‘–๐‘ฃ๐‘Ž๐‘™ ๐‘Ž๐‘ก ๐‘–๐‘ก๐‘  ๐‘ ๐‘ก๐‘œ๐‘ ๐‘— โˆ’ 1

๐‘”๐‘Ž๐‘™๐‘™๐‘œ๐‘›๐‘  ๐‘œ๐‘“ ๐‘“๐‘ข๐‘’๐‘™ ๐‘Ž๐‘ž๐‘ข๐‘–๐‘Ÿ๐‘’๐‘‘ ๐‘๐‘ฆ ๐‘™๐‘œ๐‘๐‘œ๐‘š๐‘œ๐‘ก๐‘–๐‘ฃ๐‘’ ๐‘– ๐‘Ž๐‘ก ๐‘–๐‘ก๐‘  ๐‘ ๐‘ก๐‘œ๐‘ ๐‘— โˆ’ 1

๐‘“๐‘ข๐‘’๐‘™ ๐‘๐‘œ๐‘›๐‘ ๐‘ข๐‘š๐‘๐‘ก๐‘–๐‘œ๐‘› ๐‘–๐‘› ๐‘”๐‘Ž๐‘™๐‘™๐‘œ๐‘›๐‘  ๐‘“๐‘œ๐‘Ÿ ๐‘Ž ๐‘™๐‘œ๐‘๐‘œ๐‘š๐‘œ๐‘ก๐‘–๐‘ฃ๐‘’ ๐‘– ๐‘ก๐‘œ ๐‘”๐‘œ ๐‘“๐‘œ๐‘Ÿ ๐‘ ๐‘ก๐‘œ๐‘ ๐‘— โˆ’ 1 ๐‘ก๐‘œ ๐‘ ๐‘ก๐‘œ๐‘ ๐‘—

=

+

-

1 ๐‘“๐‘ข๐‘’๐‘™ ๐‘๐‘œ๐‘›๐‘ ๐‘ข๐‘š๐‘๐‘ก๐‘–๐‘œ๐‘›

Page 22: Decision Aid Methodologies In Transportationย ยท Lab VI: Case study โ€“Freight Trains Management . Solution of the previous lab. F1 Customer (service costs ๐’„ ) Fixed cost (๐’‡

๐‘ . ๐‘ก.

๐‘”๐‘Ž๐‘™๐‘™๐‘œ๐‘›๐‘  ๐‘œ๐‘“ ๐‘“๐‘ข๐‘’๐‘™ ๐‘–๐‘› ๐‘กโ„Ž๐‘’ ๐‘ก๐‘Ž๐‘›๐‘˜ ๐‘œ๐‘“ ๐‘™๐‘œ๐‘๐‘œ๐‘š๐‘œ๐‘ก๐‘–๐‘ฃ๐‘’ ๐‘– ๐‘Ž๐‘ก ๐‘Ž๐‘›๐‘ฆ ๐‘ก๐‘–๐‘š๐‘’

โ‰ค Capacity (in gallons) of fuel tank of a locomotive

2 ๐‘๐‘Ž๐‘๐‘Ž๐‘๐‘–๐‘ก๐‘ฆ ๐‘œ๐‘“ ๐‘“๐‘ข๐‘’๐‘™ ๐‘ก๐‘Ž๐‘›๐‘˜

MILP formulation

๐‘š๐‘–๐‘› delay costs + contracting costs + fueling costs

Page 23: Decision Aid Methodologies In Transportationย ยท Lab VI: Case study โ€“Freight Trains Management . Solution of the previous lab. F1 Customer (service costs ๐’„ ) Fixed cost (๐’‡

๐‘ . ๐‘ก.

๐‘‡โ„Ž๐‘’ ๐‘”๐‘Ž๐‘™๐‘™๐‘œ๐‘›๐‘  ๐‘œ๐‘“ ๐‘“๐‘ข๐‘’๐‘™ ๐‘Ž๐‘ž๐‘ข๐‘–๐‘Ÿ๐‘’๐‘‘ ๐‘๐‘ฆ ๐‘™๐‘œ๐‘๐‘œ๐‘š๐‘œ๐‘ก๐‘–๐‘ฃ๐‘’ ๐‘– ๐‘Ž๐‘ก ๐‘–๐‘ก๐‘  ๐‘ ๐‘ก๐‘œ๐‘ ๐‘— ๐‘‘๐‘’๐‘๐‘’๐‘›๐‘‘๐‘  ๐‘œ๐‘›

๐‘คโ„Ž๐‘’๐‘กโ„Ž๐‘’๐‘Ÿ ๐‘กโ„Ž๐‘’ ๐‘™๐‘œ๐‘๐‘œ๐‘š๐‘œ๐‘ก๐‘–๐‘ฃ๐‘’ ๐‘– ๐‘ ๐‘ก๐‘œ๐‘๐‘  ๐‘Ž๐‘ก ๐‘—

3 ๐‘Ÿ๐‘’๐‘“๐‘ข๐‘’๐‘™๐‘–๐‘›๐‘”

MILP formulation

๐‘š๐‘–๐‘› delay costs + contracting costs + fueling costs

Page 24: Decision Aid Methodologies In Transportationย ยท Lab VI: Case study โ€“Freight Trains Management . Solution of the previous lab. F1 Customer (service costs ๐’„ ) Fixed cost (๐’‡

Simple example (2010 RAS Competition)

4 yards:Y1, Y2, Y3, Y4

2 trains:T1,T2

T1: [Y1,Y2,Y3,Y4]

T2: [Y4,Y2,Y1]

Distances between yards (miles):

d(Y1,Y2) = 106

d(Y2,Y3) = 146

d(Y2,Y4) = 162

d(Y3,Y4) = 16

Y1 Y2 Y3 Y4

Page 25: Decision Aid Methodologies In Transportationย ยท Lab VI: Case study โ€“Freight Trains Management . Solution of the previous lab. F1 Customer (service costs ๐’„ ) Fixed cost (๐’‡

Simple example (2010 RAS Competition)

Page 26: Decision Aid Methodologies In Transportationย ยท Lab VI: Case study โ€“Freight Trains Management . Solution of the previous lab. F1 Customer (service costs ๐’„ ) Fixed cost (๐’‡

Simple example (2010 RAS Competition)

2 locomotives: L1, L2

Each train needs to be powered by exactly one locomotive

L1 and L2 take staggered turns everyday at pulling the trains

Page 27: Decision Aid Methodologies In Transportationย ยท Lab VI: Case study โ€“Freight Trains Management . Solution of the previous lab. F1 Customer (service costs ๐’„ ) Fixed cost (๐’‡

Simple example (2010 RAS Competition)

Locomotive

Consumption: 3.5 gallons of fuel per mile

Tank capacity: 4500 gallons of fuel

Distance that can run on full tank: 1285.71 miles

Fueling truck

Capacity: 25000 gallons

Weekly operating cost: $4000

Fixed refueling cost: $250

Fuel price ($/gallon):

Y1: 3.25

Y2: 3.05

Y3: 3.15

Y4: 3.15

Page 28: Decision Aid Methodologies In Transportationย ยท Lab VI: Case study โ€“Freight Trains Management . Solution of the previous lab. F1 Customer (service costs ๐’„ ) Fixed cost (๐’‡

MILP formulation: data

Sets

๐ผ = 2 (number of locomotives)

๐‘ = 35 (number of potential stops, same for both

locomotives ๐‘๐‘– = ๐‘)

7 times T1 x 3 potential stops = 21 potential stops

7 times T2 x 2 potential stops = 14 potential stops

๐พ = 4 (number of yards)

๐‘‡ = 14 (number of days)

Page 29: Decision Aid Methodologies In Transportationย ยท Lab VI: Case study โ€“Freight Trains Management . Solution of the previous lab. F1 Customer (service costs ๐’„ ) Fixed cost (๐’‡

MILP formulation: data

Parameters

๐ท๐‘–๐‘— = $250 (delay cost of locomotive ๐‘– at stop ๐‘—)

๐ฟ๐‘‡ = 4500 ๐‘”๐‘Ž๐‘™๐‘œ๐‘›๐‘  (capacity of fuel tank of a locomotive)

๐‘‡๐‘‡ = 25000 ๐‘”๐‘Ž๐‘™๐‘œ๐‘›๐‘  (tanker truck capacity of yard)

๐ถ๐ถ = $8000 (contracting cost of a truck for 2 weeks)

๐น๐ถ๐‘–๐‘— : fuel consumption of locomotive ๐‘– on its journey from

stop ๐‘— to ๐‘— + 1 L1:T2 T1 T2 T1 โ€ฆ

L1:Y1 Y2 Y3 Y4 Y2 Y1 โ€ฆ

CO

NST

AN

T

T1 T2

Y1 Y2 Y3 Y4

371 gal 511 gal 56 gal

567 gal371gal

Page 30: Decision Aid Methodologies In Transportationย ยท Lab VI: Case study โ€“Freight Trains Management . Solution of the previous lab. F1 Customer (service costs ๐’„ ) Fixed cost (๐’‡

MILP formulation: data

Parameters

Y๐‘Ž๐‘Ÿ๐‘‘ ๐‘–, ๐‘— : yard of stop ๐‘— of

locomotive ๐‘– D๐‘Ž๐‘ฆ ๐‘–, ๐‘— : day in which stop

๐‘— of locomotive ๐‘– occurs

๐‘ƒ๐‘˜ =

3.25, 3.05, 3.15, 3.15$/gal (fuel price at yard ๐‘˜)

Page 31: Decision Aid Methodologies In Transportationย ยท Lab VI: Case study โ€“Freight Trains Management . Solution of the previous lab. F1 Customer (service costs ๐’„ ) Fixed cost (๐’‡

Provided data: fuel_prices_small.dat: fuel prices at yards (size

๐พ) number_of_stops_small.dat: number of stops for

each locomotive (size ๐ผ) list_of_events_small.csv: table with all the

possible events

Read from CSV files

1 1 1 1 371 250

1 2 2 1 511 250

1 3 3 1 56 250

1 4 4 2 567 250

1 5 2 2 371 250

Locomotive

Stop

Yard

DayConsumption to next stop Delay costs

Page 32: Decision Aid Methodologies In Transportationย ยท Lab VI: Case study โ€“Freight Trains Management . Solution of the previous lab. F1 Customer (service costs ๐’„ ) Fixed cost (๐’‡

Read from CSV files

SheetConnectionsheet1("fuel_prices_small.csv");SheetConnectionsheet2("number_of_stops_small.csv");SheetConnectionsheet3("list_of_events_small.csv");

P fromSheetRead(sheet1,"'fuel_prices_small'!A1:A4"); // fuel price at yard k (in dolars/gallon)N fromSheetRead(sheet2,"'number_of_stops_small'!A1:A2"); // number of stops for each locomotive iData fromSheetRead(sheet3,"'list_of_events_small'!A1:F70"); // LocoNumber,LocoStopNumber,YardNumber,Day,ConsumptionStops,StopDelayCost

Page 33: Decision Aid Methodologies In Transportationย ยท Lab VI: Case study โ€“Freight Trains Management . Solution of the previous lab. F1 Customer (service costs ๐’„ ) Fixed cost (๐’‡

Model formulation and small instance

Write a mathematical model (MILP) designed to find the most

cost effective plan to fuel the locomotives.

Implement your model in OPL and solve it for the small

instance.

Provide an interpretation of the solution.

Page 34: Decision Aid Methodologies In Transportationย ยท Lab VI: Case study โ€“Freight Trains Management . Solution of the previous lab. F1 Customer (service costs ๐’„ ) Fixed cost (๐’‡

MILP formulation

minimize

๐‘˜

๐ถ๐ถ๐‘˜ โ‹… ๐‘ฆ๐‘˜ +

๐‘–,๐‘—

๐ท๐‘–,๐‘— โ‹… ๐‘ฅ๐‘–,๐‘— + ๐‘ƒ๐‘ฆ๐‘Ž๐‘Ÿ๐‘‘ ๐‘–,๐‘— โ‹… ๐‘“๐‘–,๐‘—

๐‘ฃ๐‘–,๐‘— = ๐‘ฃ๐‘–,๐‘—โˆ’1 + ๐‘“๐‘–,๐‘—โˆ’1 โˆ’ ๐น๐ถ๐‘–,๐‘—โˆ’1 โˆ€๐‘–, ๐‘— = 2,โ€ฆ , ๐‘๐‘–

๐‘ฃ๐‘–,๐‘— + ๐‘“๐‘–,๐‘— โ‰ค ๐ฟ๐‘‡๐‘– โˆ€๐‘–, ๐‘—

๐‘“๐‘–,๐‘— โ‰ค ๐ฟ๐‘‡๐‘–๐‘ฅ๐‘–,๐‘— โˆ€๐‘–, ๐‘—

(๐‘–,๐‘—)โˆถ ๐‘ฆ๐‘Ž๐‘Ÿ๐‘‘(๐‘–,๐‘—) = ๐‘˜,๐‘‘๐‘Ž๐‘ฆ(๐‘–,๐‘—)=๐‘‘

๐‘“๐‘–,๐‘— โ‰ค ๐‘‡๐‘‡๐‘˜ โ‹… ๐‘ฆ๐‘˜ โˆ€๐‘˜, ๐‘‘

๐‘ฆ๐‘˜ integer, ๐‘ฅ๐‘–,๐‘— binary, ๐‘“๐‘–,๐‘— , ๐‘ฃ๐‘–,๐‘— โ‰ฅ 0

Page 35: Decision Aid Methodologies In Transportationย ยท Lab VI: Case study โ€“Freight Trains Management . Solution of the previous lab. F1 Customer (service costs ๐’„ ) Fixed cost (๐’‡

MILP formulation

minimize

๐‘˜

๐ถ๐ถ๐‘˜ โ‹… ๐‘ฆ๐‘˜ +

๐‘–,๐‘—

๐ท๐‘–,๐‘— โ‹… ๐‘ฅ๐‘–,๐‘— + ๐‘ƒ๐‘ฆ๐‘Ž๐‘Ÿ๐‘‘ ๐‘–,๐‘— โ‹… ๐‘“๐‘–,๐‘—

๐‘ฃ๐‘–,๐‘— = ๐‘ฃ๐‘–,๐‘—โˆ’1 + ๐‘“๐‘–,๐‘—โˆ’1 โˆ’ ๐น๐ถ๐‘–,๐‘—โˆ’1 โˆ€๐‘–, ๐‘— = 2,โ€ฆ , ๐‘๐‘–

๐‘ฃ๐‘–,๐‘— + ๐‘“๐‘–,๐‘— โ‰ค ๐ฟ๐‘‡๐‘– โˆ€๐‘–, ๐‘—

๐‘“๐‘–,๐‘— โ‰ค ๐ฟ๐‘‡๐‘–๐‘ฅ๐‘–,๐‘— โˆ€๐‘–, ๐‘—

(๐‘–,๐‘—)โˆถ ๐‘ฆ๐‘Ž๐‘Ÿ๐‘‘(๐‘–,๐‘—) = ๐‘˜,๐‘‘๐‘Ž๐‘ฆ(๐‘–,๐‘—)=๐‘‘

๐‘“๐‘–,๐‘— โ‰ค ๐‘‡๐‘‡๐‘˜ โ‹… ๐‘ฆ๐‘˜ โˆ€๐‘˜, ๐‘‘

๐‘ฆ๐‘˜ integer, ๐‘ฅ๐‘–,๐‘— binary, ๐‘“๐‘–,๐‘— , ๐‘ฃ๐‘–,๐‘— โ‰ฅ 0

Page 36: Decision Aid Methodologies In Transportationย ยท Lab VI: Case study โ€“Freight Trains Management . Solution of the previous lab. F1 Customer (service costs ๐’„ ) Fixed cost (๐’‡

Results of the basic instance

Loc Yard StopNumber Day Gallons

2 4 1 1 0

2 2 2 1 0

2 1 3 2 0

2 2 4 2 0

2 3 5 2 0

2 4 6 3 0

2 2 7 3 0

2 1 8 4 0

2 2 9 4 0

2 3 10 4 0

2 4 11 5 0

2 2 12 5 4313

2 1 13 6 0

2 2 14 6 0

2 3 15 6 0

2 4 16 7 0

2 2 17 7 0

2 1 18 8 0

2 2 19 8 0

2 3 20 8 0

2 4 21 9 0

2 2 22 9 0

2 1 23 10 0

2 2 24 10 4263

2 3 25 10 0

2 4 26 11 0

2 2 27 11 0

2 1 28 12 0

2 2 29 12 0

2 3 30 12 0

2 4 31 13 0

2 2 32 13 0

2 1 33 14 0

2 2 34 14 0

2 3 35 14 0

Loc Yard StopNumber Day Gallons

1 1 1 1 0

1 2 2 1 0

1 3 3 1 0

1 4 4 2 0

1 2 5 2 0

1 1 6 3 0

1 2 7 3 0

1 3 8 3 0

1 4 9 4 0

1 2 10 4 0

1 1 11 5 0

1 2 12 5 2633

1 3 13 5 0

1 4 14 6 0

1 2 15 6 0

1 1 16 7 0

1 2 17 7 0

1 3 18 7 0

1 4 19 8 0

1 2 20 8 4500

1 1 21 9 0

1 2 22 9 0

1 3 23 9 0

1 4 24 10 0

1 2 25 10 0

1 1 26 11 0

1 2 27 11 0

1 3 28 11 0

1 4 29 12 0

1 2 30 12 0

1 1 31 13 0

1 2 32 13 1128

1 3 33 13 0

1 4 34 14 0

1 2 35 14 0

Page 37: Decision Aid Methodologies In Transportationย ยท Lab VI: Case study โ€“Freight Trains Management . Solution of the previous lab. F1 Customer (service costs ๐’„ ) Fixed cost (๐’‡

Results of the basic instance

Interpretation of the results:

Fueling trucks are contracted only inYard 2

Locomotive 1 stops three times:

Day 5, stop 12: 2633 gallons

Day 8, stop 20: 4500 gallons

Day 13, stop 32: 1128 gallons

Locomotive 2 stops two times:

Day 5, stop 12: 4313 gallons

Day 10, stop 24: 4263 gallons

Objective value: 60602.85

Page 38: Decision Aid Methodologies In Transportationย ยท Lab VI: Case study โ€“Freight Trains Management . Solution of the previous lab. F1 Customer (service costs ๐’„ ) Fixed cost (๐’‡

Assignment #6

The following inequalities are valid for our problem:

V1: ๐‘ฅ๐‘–,๐‘— โ‰ค ๐‘ฆ๐‘ฆ๐‘Ž๐‘Ÿ๐‘‘ ๐‘–,๐‘— โˆ€๐‘–, ๐‘—

V2:

Using the large instance, run three versions of the model

separately:

M1: Standard model

M2: Standard model + V1

M3: Standard model + V2

๐‘—=1

๐‘๐‘–

๐‘ฅ๐‘–,๐‘— โ‰ฅ ๐‘€๐‘–๐‘›๐น๐‘ข๐‘’๐‘™๐‘  ๐‘– โˆ€๐‘–

๐‘€๐‘–๐‘›๐น๐‘ข๐‘’๐‘™๐‘  ๐‘– =ฯƒ๐‘—=1๐‘๐‘– ๐น๐ถ๐‘–,๐‘—

๐ฟ๐‘‡๐‘–

Page 39: Decision Aid Methodologies In Transportationย ยท Lab VI: Case study โ€“Freight Trains Management . Solution of the previous lab. F1 Customer (service costs ๐’„ ) Fixed cost (๐’‡

Assignment #6

Stop the running after 15 minutes (900 seconds): cplex.tilim = 900;

Report the following information in a table: getobjectivevalue(m)

getobjbound(m)

getobjgap(m)

getsolvetime(m)

M1 M2 M3

Best known solution

Lower bound

Optimality gap

Solution time (s) Analyze the solutions and provide conclusions

Page 40: Decision Aid Methodologies In Transportationย ยท Lab VI: Case study โ€“Freight Trains Management . Solution of the previous lab. F1 Customer (service costs ๐’„ ) Fixed cost (๐’‡

Assignment #6

Send a single file containing all the answers including your

code (format is up to you) AND mathematical formulations of

the different models.

Group/Individual work

Send your reports to virginie.lurkin(at)epfl.ch

Send your reports by 8:00 P.M. next Monday