Professional Documents
Culture Documents
Solver Parameters J
Set Objective Cell: Total Cost 3 Net Flow
To: Min
By Changing Variable Cells: Ship 4 a=SUMIF(FROM,I4,Ship)-SUMIF(TO,I4,Ship)
Subject to the Constraints: 5 a=SUMIF(FROM,I5,Ship)-SUMIF(TO,I5,Ship)
D5:D8 <= Capacity 6 a=SUMIF(FROM,I6,Ship)-SUMIF(TO,I6,Ship)
NetFlow = SupplyDemand
7 a=SUMIF(FROM,I7,Ship)-SUMIF(TO,I7,Ship)
Solver Options: 8 a=SUMIF(FROM,I8,Ship)-SUMIF(TO,I8,Ship)
Make Variables Nonnegative
Solving Method: Simplex LP
C D
11 Total Cost SUMPRODUCT(Ship,Unit Cost)
Supply/Demand Range Name Cells
80 Capacity F5:F8
70 From B4:B9
0 NetFlow J4:J8
-60 Nodes I4:I8
-90 Ship D4:D9
SupplyDemand L4:L8
To C4:C9
TotalCost D11
UnitCost G4:G9
J
Net Flow
F(FROM,I4,Ship)-SUMIF(TO,I4,Ship)
F(FROM,I5,Ship)-SUMIF(TO,I5,Ship)
F(FROM,I6,Ship)-SUMIF(TO,I6,Ship)
F(FROM,I7,Ship)-SUMIF(TO,I7,Ship)
F(FROM,I8,Ship)-SUMIF(TO,I8,Ship)
D
SUMPRODUCT(Ship,Unit Cost)
Little Town Fire Department Shortest Path Problem
Solver Parameters
Set Objective Cell: TotalDistance
To: Min
By Changing Variable Cells:
OnRoute
Subject to the Constraints:
Netflow = SupplyDemand
Solver Options:
Make Variables Nonnegative
Solving Method: Simplex LP
Make Variables Nonnegative
Solving Method: Simplex LP
Net Flow Supply/Demand
1 = 1
0 = 0
0 = 0
0 = 0
0 = 0
0 = 0
0 = 0
0 = 0
0 = 0
-1 = -1
I
3 Net Flow
4 a=SUMIF(FROM,H4,OnRoute)-SUMIF(TO,H4,OnRoute)
5 a=SUMIF(FROM,H5,OnRoute)-SUMIF(TO,H5,OnRoute)
Cells 6 a=SUMIF(FROM,H6,OnRoute)-SUMIF(TO,H6,OnRoute)
F4:F27 7 a=SUMIF(FROM,H7,OnRoute)-SUMIF(TO,H7,OnRoute)
B4:B27 8 a=SUMIF(FROM,H8,OnRoute)-SUMIF(TO,H8,OnRoute)
I4:I13 9 a=SUMIF(FROM,H9,OnRoute)-SUMIF(TO,H9,OnRoute)
H4:H13 10 a=SUMIF(FROM,H10,OnRoute)-SUMIF(TO,H10,OnRoute)
D4:D27 11 a=SUMIF(FROM,H11,OnRoute)-SUMIF(TO,H11,OnRoute)
K4:K13 12 a=SUMIF(FROM,H12,OnRoute)-SUMIF(TO,H12,OnRoute)
C4:C27 13 a=SUMIF(FROM,H13,OnRoute)-SUMIF(TO,H13,OnRoute)
D29
C D
29 Total Distance a=SUMPRODUCT(OnRoute,Distance)