Implement global disposal limits

This commit is contained in:
2025-09-16 11:53:32 -05:00
parent 67b1e5fd40
commit e4d4ee1cc8
14 changed files with 126 additions and 79 deletions

View File

@@ -69,6 +69,7 @@ function run_boat_example()
"transportation cost (\$/km/tonne)" => 0.30,
"transportation energy (J/km/tonne)" => 7_500,
"transportation emissions (tonne/km/tonne)" => dict("CO2" => 2.68),
"disposal limit (tonne)" => nothing,
)
boat_factory = dict(

View File

@@ -12,28 +12,32 @@
"transportation energy (J/km/tonne)": 7500,
"transportation emissions (tonne/km/tonne)": {
"CO2": 2.68
}
},
"disposal limit (tonne)": null
},
"Wood": {
"transportation cost ($/km/tonne)": 0.3,
"transportation energy (J/km/tonne)": 7500,
"transportation emissions (tonne/km/tonne)": {
"CO2": 2.68
}
},
"disposal limit (tonne)": null
},
"NewBoat": {
"transportation cost ($/km/tonne)": 0.3,
"transportation energy (J/km/tonne)": 7500,
"transportation emissions (tonne/km/tonne)": {
"CO2": 2.68
}
},
"disposal limit (tonne)": null
},
"UsedBoat": {
"transportation cost ($/km/tonne)": 0.3,
"transportation energy (J/km/tonne)": 7500,
"transportation emissions (tonne/km/tonne)": {
"CO2": 2.68
}
},
"disposal limit (tonne)": null
}
},
"centers": {

View File

@@ -1,7 +1,7 @@
center,output product,year,amount collected (tonne),amount disposed (tonne),collection cost ($),disposal cost ($)
NailFactory (Chicago),Nail,1,1.0,0.0,1000.0,0.0
NailFactory (Chicago),Nail,2,1.0,0.0,1000.0,0.0
NailFactory (Chicago),Nail,3,1.0,-0.0,1000.0,-0.0
NailFactory (Chicago),Nail,3,1.0,0.0,1000.0,0.0
NailFactory (Chicago),Nail,4,1.0,0.0,1000.0,0.0
NailFactory (Chicago),Nail,5,1.0,0.0,1000.0,0.0
NailFactory (Phoenix),Nail,1,1.0,0.0,1000.0,0.0
@@ -9,11 +9,11 @@ NailFactory (Phoenix),Nail,2,1.0,0.0,1000.0,0.0
NailFactory (Phoenix),Nail,3,1.0,0.0,1000.0,0.0
NailFactory (Phoenix),Nail,4,1.0,0.0,1000.0,0.0
NailFactory (Phoenix),Nail,5,1.0,0.0,1000.0,0.0
NailFactory (Dallas),Nail,1,1.0,-0.0,1000.0,-0.0
NailFactory (Dallas),Nail,1,1.0,0.0,1000.0,0.0
NailFactory (Dallas),Nail,2,1.0,-0.0,1000.0,-0.0
NailFactory (Dallas),Nail,3,1.0,-0.0,1000.0,-0.0
NailFactory (Dallas),Nail,4,1.0,0.0,1000.0,0.0
NailFactory (Dallas),Nail,5,1.0,0.0,1000.0,0.0
NailFactory (Dallas),Nail,3,1.0,0.0,1000.0,0.0
NailFactory (Dallas),Nail,4,1.0,-0.0,1000.0,-0.0
NailFactory (Dallas),Nail,5,1.0,-0.0,1000.0,-0.0
Forest (Chicago),Wood,1,100.0,100.0,0.0,0.0
Forest (Chicago),Wood,2,100.0,100.0,0.0,0.0
Forest (Chicago),Wood,3,100.0,100.0,0.0,0.0
@@ -43,17 +43,17 @@ Retail (Los Angeles),UsedBoat,1,0.0,0.0,0.0,0.0
Retail (Los Angeles),UsedBoat,2,0.0,0.0,0.0,0.0
Retail (Los Angeles),UsedBoat,3,0.0,0.0,0.0,0.0
Retail (Los Angeles),UsedBoat,4,0.0,0.0,0.0,0.0
Retail (Los Angeles),UsedBoat,5,0.0,0.0,0.0,0.0
Retail (Los Angeles),UsedBoat,5,-0.0,0.0,-0.0,0.0
Retail (Houston),UsedBoat,1,0.0,0.0,0.0,0.0
Retail (Houston),UsedBoat,2,0.0,0.0,0.0,0.0
Retail (Houston),UsedBoat,3,0.0,0.0,0.0,0.0
Retail (Houston),UsedBoat,4,0.0,0.0,0.0,0.0
Retail (Houston),UsedBoat,5,0.0,0.0,0.0,0.0
Retail (Houston),UsedBoat,5,-0.0,0.0,-0.0,0.0
Retail (Phoenix),UsedBoat,1,0.0,0.0,0.0,0.0
Retail (Phoenix),UsedBoat,2,0.0,0.0,0.0,0.0
Retail (Phoenix),UsedBoat,3,0.0,0.0,0.0,0.0
Retail (Phoenix),UsedBoat,4,0.0,0.0,0.0,0.0
Retail (Phoenix),UsedBoat,5,0.0,0.0,0.0,0.0
Retail (Phoenix),UsedBoat,4,-0.0,0.0,-0.0,0.0
Retail (Phoenix),UsedBoat,5,-0.0,0.0,-0.0,0.0
Retail (Philadelphia),UsedBoat,1,0.0,0.0,0.0,0.0
Retail (Philadelphia),UsedBoat,2,0.0,0.0,0.0,0.0
Retail (Philadelphia),UsedBoat,3,0.0,0.0,0.0,0.0
1 center output product year amount collected (tonne) amount disposed (tonne) collection cost ($) disposal cost ($)
2 NailFactory (Chicago) Nail 1 1.0 0.0 1000.0 0.0
3 NailFactory (Chicago) Nail 2 1.0 0.0 1000.0 0.0
4 NailFactory (Chicago) Nail 3 1.0 -0.0 0.0 1000.0 -0.0 0.0
5 NailFactory (Chicago) Nail 4 1.0 0.0 1000.0 0.0
6 NailFactory (Chicago) Nail 5 1.0 0.0 1000.0 0.0
7 NailFactory (Phoenix) Nail 1 1.0 0.0 1000.0 0.0
9 NailFactory (Phoenix) Nail 3 1.0 0.0 1000.0 0.0
10 NailFactory (Phoenix) Nail 4 1.0 0.0 1000.0 0.0
11 NailFactory (Phoenix) Nail 5 1.0 0.0 1000.0 0.0
12 NailFactory (Dallas) Nail 1 1.0 -0.0 0.0 1000.0 -0.0 0.0
13 NailFactory (Dallas) Nail 2 1.0 -0.0 1000.0 -0.0
14 NailFactory (Dallas) Nail 3 1.0 -0.0 0.0 1000.0 -0.0 0.0
15 NailFactory (Dallas) Nail 4 1.0 0.0 -0.0 1000.0 0.0 -0.0
16 NailFactory (Dallas) Nail 5 1.0 0.0 -0.0 1000.0 0.0 -0.0
17 Forest (Chicago) Wood 1 100.0 100.0 0.0 0.0
18 Forest (Chicago) Wood 2 100.0 100.0 0.0 0.0
19 Forest (Chicago) Wood 3 100.0 100.0 0.0 0.0
43 Retail (Los Angeles) UsedBoat 2 0.0 0.0 0.0 0.0
44 Retail (Los Angeles) UsedBoat 3 0.0 0.0 0.0 0.0
45 Retail (Los Angeles) UsedBoat 4 0.0 0.0 0.0 0.0
46 Retail (Los Angeles) UsedBoat 5 0.0 -0.0 0.0 0.0 -0.0 0.0
47 Retail (Houston) UsedBoat 1 0.0 0.0 0.0 0.0
48 Retail (Houston) UsedBoat 2 0.0 0.0 0.0 0.0
49 Retail (Houston) UsedBoat 3 0.0 0.0 0.0 0.0
50 Retail (Houston) UsedBoat 4 0.0 0.0 0.0 0.0
51 Retail (Houston) UsedBoat 5 0.0 -0.0 0.0 0.0 -0.0 0.0
52 Retail (Phoenix) UsedBoat 1 0.0 0.0 0.0 0.0
53 Retail (Phoenix) UsedBoat 2 0.0 0.0 0.0 0.0
54 Retail (Phoenix) UsedBoat 3 0.0 0.0 0.0 0.0
55 Retail (Phoenix) UsedBoat 4 0.0 -0.0 0.0 0.0 -0.0 0.0
56 Retail (Phoenix) UsedBoat 5 0.0 -0.0 0.0 0.0 -0.0 0.0
57 Retail (Philadelphia) UsedBoat 1 0.0 0.0 0.0 0.0
58 Retail (Philadelphia) UsedBoat 2 0.0 0.0 0.0 0.0
59 Retail (Philadelphia) UsedBoat 3 0.0 0.0 0.0 0.0

View File

@@ -43,16 +43,16 @@ Retail (Los Angeles),1,NewBoat,0.0,0.0,125000.0
Retail (Los Angeles),2,NewBoat,0.0,0.0,125000.0
Retail (Los Angeles),3,NewBoat,0.0,0.0,125000.0
Retail (Los Angeles),4,NewBoat,0.0,0.0,125000.0
Retail (Los Angeles),5,NewBoat,0.0,0.0,125000.0
Retail (Los Angeles),5,NewBoat,-0.0,0.0,125000.0
Retail (Houston),1,NewBoat,0.0,0.0,125000.0
Retail (Houston),2,NewBoat,0.0,0.0,125000.0
Retail (Houston),3,NewBoat,0.0,0.0,125000.0
Retail (Houston),4,NewBoat,0.0,0.0,125000.0
Retail (Houston),5,NewBoat,0.0,0.0,125000.0
Retail (Houston),5,NewBoat,-0.0,0.0,125000.0
Retail (Phoenix),1,NewBoat,0.0,0.0,125000.0
Retail (Phoenix),2,NewBoat,0.0,0.0,125000.0
Retail (Phoenix),3,NewBoat,0.0,0.0,125000.0
Retail (Phoenix),4,NewBoat,0.0,0.0,125000.0
Retail (Phoenix),4,NewBoat,-0.0,-0.0,125000.0
Retail (Phoenix),5,NewBoat,0.0,0.0,125000.0
Retail (Philadelphia),1,NewBoat,0.0,0.0,125000.0
Retail (Philadelphia),2,NewBoat,0.0,0.0,125000.0
1 center year input product input amount (tonne) revenue ($) operating cost ($)
43 Retail (Los Angeles) 2 NewBoat 0.0 0.0 125000.0
44 Retail (Los Angeles) 3 NewBoat 0.0 0.0 125000.0
45 Retail (Los Angeles) 4 NewBoat 0.0 0.0 125000.0
46 Retail (Los Angeles) 5 NewBoat 0.0 -0.0 0.0 125000.0
47 Retail (Houston) 1 NewBoat 0.0 0.0 125000.0
48 Retail (Houston) 2 NewBoat 0.0 0.0 125000.0
49 Retail (Houston) 3 NewBoat 0.0 0.0 125000.0
50 Retail (Houston) 4 NewBoat 0.0 0.0 125000.0
51 Retail (Houston) 5 NewBoat 0.0 -0.0 0.0 125000.0
52 Retail (Phoenix) 1 NewBoat 0.0 0.0 125000.0
53 Retail (Phoenix) 2 NewBoat 0.0 0.0 125000.0
54 Retail (Phoenix) 3 NewBoat 0.0 0.0 125000.0
55 Retail (Phoenix) 4 NewBoat 0.0 -0.0 0.0 -0.0 125000.0
56 Retail (Phoenix) 5 NewBoat 0.0 0.0 125000.0
57 Retail (Philadelphia) 1 NewBoat 0.0 0.0 125000.0
58 Retail (Philadelphia) 2 NewBoat 0.0 0.0 125000.0

View File

@@ -50,12 +50,12 @@ BoatFactory (San Jose),NewBoat,3,0.0,0.0,0.0
BoatFactory (San Jose),NewBoat,4,0.0,0.0,0.0
BoatFactory (San Jose),NewBoat,5,0.0,0.0,0.0
RecyclingPlant (Chicago),Nail,1,0.0,0.0,0.0
RecyclingPlant (Chicago),Nail,2,0.0,0.0,0.0
RecyclingPlant (Chicago),Nail,2,-0.0,0.0,0.0
RecyclingPlant (Chicago),Nail,3,0.0,0.0,0.0
RecyclingPlant (Chicago),Nail,4,0.0,0.0,0.0
RecyclingPlant (Chicago),Nail,5,0.0,0.0,0.0
RecyclingPlant (Chicago),Wood,1,0.0,0.0,0.0
RecyclingPlant (Chicago),Wood,2,0.0,0.0,0.0
RecyclingPlant (Chicago),Wood,2,-0.0,0.0,0.0
RecyclingPlant (Chicago),Wood,3,0.0,0.0,0.0
RecyclingPlant (Chicago),Wood,4,0.0,0.0,0.0
RecyclingPlant (Chicago),Wood,5,0.0,0.0,0.0
1 plant output product year amount produced (tonne) amount disposed (tonne) disposal cost ($)
50 BoatFactory (San Jose) NewBoat 4 0.0 0.0 0.0
51 BoatFactory (San Jose) NewBoat 5 0.0 0.0 0.0
52 RecyclingPlant (Chicago) Nail 1 0.0 0.0 0.0
53 RecyclingPlant (Chicago) Nail 2 0.0 -0.0 0.0 0.0
54 RecyclingPlant (Chicago) Nail 3 0.0 0.0 0.0
55 RecyclingPlant (Chicago) Nail 4 0.0 0.0 0.0
56 RecyclingPlant (Chicago) Nail 5 0.0 0.0 0.0
57 RecyclingPlant (Chicago) Wood 1 0.0 0.0 0.0
58 RecyclingPlant (Chicago) Wood 2 0.0 -0.0 0.0 0.0
59 RecyclingPlant (Chicago) Wood 3 0.0 0.0 0.0
60 RecyclingPlant (Chicago) Wood 4 0.0 0.0 0.0
61 RecyclingPlant (Chicago) Wood 5 0.0 0.0 0.0

View File

@@ -1,39 +1,39 @@
plant,year,operational?,input amount (tonne),opening cost ($),fixed operating cost ($),variable operating cost ($)
BoatFactory (Chicago),1,false,-0.0,0.0,0.0,-0.0
BoatFactory (Chicago),2,false,-0.0,0.0,0.0,-0.0
BoatFactory (Chicago),3,false,-0.0,0.0,0.0,-0.0
BoatFactory (Chicago),4,false,-0.0,0.0,0.0,-0.0
BoatFactory (Chicago),5,false,-0.0,0.0,0.0,-0.0
BoatFactory (Chicago),1,false,0.0,0.0,0.0,0.0
BoatFactory (Chicago),2,false,0.0,0.0,0.0,0.0
BoatFactory (Chicago),3,false,0.0,0.0,0.0,0.0
BoatFactory (Chicago),4,false,0.0,0.0,0.0,0.0
BoatFactory (Chicago),5,false,0.0,0.0,0.0,0.0
BoatFactory (New York City),1,false,0.0,0.0,0.0,0.0
BoatFactory (New York City),2,false,0.0,0.0,0.0,0.0
BoatFactory (New York City),3,false,0.0,0.0,0.0,0.0
BoatFactory (New York City),4,false,0.0,0.0,0.0,0.0
BoatFactory (New York City),5,false,0.0,0.0,0.0,0.0
BoatFactory (Los Angeles),1,false,-0.0,0.0,0.0,-0.0
BoatFactory (Los Angeles),2,false,-0.0,0.0,0.0,-0.0
BoatFactory (Los Angeles),3,false,-0.0,0.0,0.0,-0.0
BoatFactory (Los Angeles),4,false,-0.0,0.0,0.0,-0.0
BoatFactory (Los Angeles),5,false,-0.0,0.0,0.0,-0.0
BoatFactory (Houston),1,false,-0.0,0.0,0.0,-0.0
BoatFactory (Houston),2,false,-0.0,0.0,0.0,-0.0
BoatFactory (Houston),3,false,-0.0,0.0,0.0,-0.0
BoatFactory (Houston),4,false,-0.0,0.0,0.0,-0.0
BoatFactory (Houston),5,false,-0.0,0.0,0.0,-0.0
BoatFactory (Phoenix),1,false,-0.0,0.0,0.0,-0.0
BoatFactory (Phoenix),2,false,-0.0,0.0,0.0,-0.0
BoatFactory (Los Angeles),1,false,0.0,0.0,0.0,0.0
BoatFactory (Los Angeles),2,false,0.0,0.0,0.0,0.0
BoatFactory (Los Angeles),3,false,0.0,0.0,0.0,0.0
BoatFactory (Los Angeles),4,false,0.0,0.0,0.0,0.0
BoatFactory (Los Angeles),5,false,0.0,0.0,0.0,0.0
BoatFactory (Houston),1,false,0.0,0.0,0.0,0.0
BoatFactory (Houston),2,false,0.0,0.0,0.0,0.0
BoatFactory (Houston),3,false,0.0,0.0,0.0,0.0
BoatFactory (Houston),4,false,0.0,0.0,0.0,0.0
BoatFactory (Houston),5,false,0.0,0.0,0.0,0.0
BoatFactory (Phoenix),1,false,0.0,0.0,0.0,0.0
BoatFactory (Phoenix),2,false,0.0,0.0,0.0,0.0
BoatFactory (Phoenix),3,false,0.0,0.0,0.0,0.0
BoatFactory (Phoenix),4,false,-0.0,0.0,0.0,-0.0
BoatFactory (Phoenix),4,false,0.0,0.0,0.0,0.0
BoatFactory (Phoenix),5,false,0.0,0.0,0.0,0.0
BoatFactory (Philadelphia),1,false,0.0,0.0,0.0,0.0
BoatFactory (Philadelphia),2,false,0.0,0.0,0.0,0.0
BoatFactory (Philadelphia),3,false,0.0,0.0,0.0,0.0
BoatFactory (Philadelphia),4,false,0.0,0.0,0.0,0.0
BoatFactory (Philadelphia),5,false,0.0,0.0,0.0,0.0
BoatFactory (San Antonio),1,false,-0.0,0.0,0.0,-0.0
BoatFactory (San Antonio),2,false,-0.0,0.0,0.0,-0.0
BoatFactory (San Antonio),3,false,-0.0,0.0,0.0,-0.0
BoatFactory (San Antonio),4,false,-0.0,0.0,0.0,-0.0
BoatFactory (San Antonio),5,false,-0.0,0.0,0.0,-0.0
BoatFactory (San Antonio),1,false,0.0,0.0,0.0,0.0
BoatFactory (San Antonio),2,false,0.0,0.0,0.0,0.0
BoatFactory (San Antonio),3,false,0.0,0.0,0.0,0.0
BoatFactory (San Antonio),4,false,0.0,0.0,0.0,0.0
BoatFactory (San Antonio),5,false,0.0,0.0,0.0,0.0
BoatFactory (San Diego),1,false,0.0,0.0,0.0,0.0
BoatFactory (San Diego),2,false,0.0,0.0,0.0,0.0
BoatFactory (San Diego),3,false,0.0,0.0,0.0,0.0
@@ -50,7 +50,7 @@ BoatFactory (San Jose),3,false,0.0,0.0,0.0,0.0
BoatFactory (San Jose),4,false,0.0,0.0,0.0,0.0
BoatFactory (San Jose),5,false,0.0,0.0,0.0,0.0
RecyclingPlant (Chicago),1,false,0.0,0.0,0.0,0.0
RecyclingPlant (Chicago),2,false,0.0,0.0,0.0,0.0
RecyclingPlant (Chicago),2,false,-0.0,0.0,0.0,-0.0
RecyclingPlant (Chicago),3,false,0.0,0.0,0.0,0.0
RecyclingPlant (Chicago),4,false,0.0,0.0,0.0,0.0
RecyclingPlant (Chicago),5,false,0.0,0.0,0.0,0.0
@@ -71,7 +71,7 @@ RecyclingPlant (Houston),4,false,0.0,0.0,0.0,0.0
RecyclingPlant (Houston),5,false,0.0,0.0,0.0,0.0
RecyclingPlant (Phoenix),1,false,0.0,0.0,0.0,0.0
RecyclingPlant (Phoenix),2,false,0.0,0.0,0.0,0.0
RecyclingPlant (Phoenix),3,false,-0.0,0.0,0.0,-0.0
RecyclingPlant (Phoenix),3,false,0.0,0.0,0.0,0.0
RecyclingPlant (Phoenix),4,false,0.0,0.0,0.0,0.0
RecyclingPlant (Phoenix),5,false,0.0,0.0,0.0,0.0
RecyclingPlant (Philadelphia),1,false,0.0,0.0,0.0,0.0
1 plant year operational? input amount (tonne) opening cost ($) fixed operating cost ($) variable operating cost ($)
2 BoatFactory (Chicago) 1 false -0.0 0.0 0.0 0.0 -0.0 0.0
3 BoatFactory (Chicago) 2 false -0.0 0.0 0.0 0.0 -0.0 0.0
4 BoatFactory (Chicago) 3 false -0.0 0.0 0.0 0.0 -0.0 0.0
5 BoatFactory (Chicago) 4 false -0.0 0.0 0.0 0.0 -0.0 0.0
6 BoatFactory (Chicago) 5 false -0.0 0.0 0.0 0.0 -0.0 0.0
7 BoatFactory (New York City) 1 false 0.0 0.0 0.0 0.0
8 BoatFactory (New York City) 2 false 0.0 0.0 0.0 0.0
9 BoatFactory (New York City) 3 false 0.0 0.0 0.0 0.0
10 BoatFactory (New York City) 4 false 0.0 0.0 0.0 0.0
11 BoatFactory (New York City) 5 false 0.0 0.0 0.0 0.0
12 BoatFactory (Los Angeles) 1 false -0.0 0.0 0.0 0.0 -0.0 0.0
13 BoatFactory (Los Angeles) 2 false -0.0 0.0 0.0 0.0 -0.0 0.0
14 BoatFactory (Los Angeles) 3 false -0.0 0.0 0.0 0.0 -0.0 0.0
15 BoatFactory (Los Angeles) 4 false -0.0 0.0 0.0 0.0 -0.0 0.0
16 BoatFactory (Los Angeles) 5 false -0.0 0.0 0.0 0.0 -0.0 0.0
17 BoatFactory (Houston) 1 false -0.0 0.0 0.0 0.0 -0.0 0.0
18 BoatFactory (Houston) 2 false -0.0 0.0 0.0 0.0 -0.0 0.0
19 BoatFactory (Houston) 3 false -0.0 0.0 0.0 0.0 -0.0 0.0
20 BoatFactory (Houston) 4 false -0.0 0.0 0.0 0.0 -0.0 0.0
21 BoatFactory (Houston) 5 false -0.0 0.0 0.0 0.0 -0.0 0.0
22 BoatFactory (Phoenix) 1 false -0.0 0.0 0.0 0.0 -0.0 0.0
23 BoatFactory (Phoenix) 2 false -0.0 0.0 0.0 0.0 -0.0 0.0
24 BoatFactory (Phoenix) 3 false 0.0 0.0 0.0 0.0
25 BoatFactory (Phoenix) 4 false -0.0 0.0 0.0 0.0 -0.0 0.0
26 BoatFactory (Phoenix) 5 false 0.0 0.0 0.0 0.0
27 BoatFactory (Philadelphia) 1 false 0.0 0.0 0.0 0.0
28 BoatFactory (Philadelphia) 2 false 0.0 0.0 0.0 0.0
29 BoatFactory (Philadelphia) 3 false 0.0 0.0 0.0 0.0
30 BoatFactory (Philadelphia) 4 false 0.0 0.0 0.0 0.0
31 BoatFactory (Philadelphia) 5 false 0.0 0.0 0.0 0.0
32 BoatFactory (San Antonio) 1 false -0.0 0.0 0.0 0.0 -0.0 0.0
33 BoatFactory (San Antonio) 2 false -0.0 0.0 0.0 0.0 -0.0 0.0
34 BoatFactory (San Antonio) 3 false -0.0 0.0 0.0 0.0 -0.0 0.0
35 BoatFactory (San Antonio) 4 false -0.0 0.0 0.0 0.0 -0.0 0.0
36 BoatFactory (San Antonio) 5 false -0.0 0.0 0.0 0.0 -0.0 0.0
37 BoatFactory (San Diego) 1 false 0.0 0.0 0.0 0.0
38 BoatFactory (San Diego) 2 false 0.0 0.0 0.0 0.0
39 BoatFactory (San Diego) 3 false 0.0 0.0 0.0 0.0
50 BoatFactory (San Jose) 4 false 0.0 0.0 0.0 0.0
51 BoatFactory (San Jose) 5 false 0.0 0.0 0.0 0.0
52 RecyclingPlant (Chicago) 1 false 0.0 0.0 0.0 0.0
53 RecyclingPlant (Chicago) 2 false 0.0 -0.0 0.0 0.0 0.0 -0.0
54 RecyclingPlant (Chicago) 3 false 0.0 0.0 0.0 0.0
55 RecyclingPlant (Chicago) 4 false 0.0 0.0 0.0 0.0
56 RecyclingPlant (Chicago) 5 false 0.0 0.0 0.0 0.0
71 RecyclingPlant (Houston) 5 false 0.0 0.0 0.0 0.0
72 RecyclingPlant (Phoenix) 1 false 0.0 0.0 0.0 0.0
73 RecyclingPlant (Phoenix) 2 false 0.0 0.0 0.0 0.0
74 RecyclingPlant (Phoenix) 3 false -0.0 0.0 0.0 0.0 -0.0 0.0
75 RecyclingPlant (Phoenix) 4 false 0.0 0.0 0.0 0.0
76 RecyclingPlant (Phoenix) 5 false 0.0 0.0 0.0 0.0
77 RecyclingPlant (Philadelphia) 1 false 0.0 0.0 0.0 0.0

View File

@@ -11,7 +11,8 @@
"transportation emissions (tonne/km/tonne)": {
"CO2": 0.052,
"CH4": [0.003, 0.003, 0.003, 0.003]
}
},
"disposal limit (tonne)": 1.0
},
"P2": {
"transportation cost ($/km/tonne)": [0.015, 0.015, 0.015, 0.015],
@@ -19,7 +20,8 @@
"transportation emissions (tonne/km/tonne)": {
"CO2": [0.052, 0.052, 0.052, 0.052],
"CH4": [0.003, 0.003, 0.003, 0.003]
}
},
"disposal limit (tonne)": 2.0
},
"P3": {
"transportation cost ($/km/tonne)": [0.015, 0.015, 0.015, 0.015],
@@ -27,7 +29,8 @@
"transportation emissions (tonne/km/tonne)": {
"CO2": [0.052, 0.052, 0.052, 0.052],
"CH4": [0.003, 0.003, 0.003, 0.003]
}
},
"disposal limit (tonne)": 5.0
},
"P4": {
"transportation cost ($/km/tonne)": [0.015, 0.015, 0.015, 0.015],
@@ -35,7 +38,8 @@
"transportation emissions (tonne/km/tonne)": {
"CO2": [0.052, 0.052, 0.052, 0.052],
"CH4": [0.003, 0.003, 0.003, 0.003]
}
},
"disposal limit (tonne)": null
}
},
"centers": {

View File

@@ -18,6 +18,7 @@ function instance_parse_test_1()
@test p1.tr_energy == [0.12, 0.12, 0.12, 0.12]
@test p1.tr_emissions ==
Dict("CO2" => [0.052, 0.052, 0.052, 0.052], "CH4" => [0.003, 0.003, 0.003, 0.003])
@test p1.disposal_limit == [1.0, 1.0, 1.0, 1.0]
@test instance.products_by_name["P1"] === p1
p2 = instance.products[2]
p3 = instance.products[3]

View File

@@ -109,4 +109,13 @@ function model_build_test()
@test repr(model[:eq_disposal_limit]["C1", "P2", 1]) ==
"eq_disposal_limit[C1,P2,1] : z_disp[C1,P2,1] ≤ 0"
@test ("C1", "P3", 1) keys(model[:eq_disposal_limit])
# Global disposal limit
@test repr(model[:eq_disposal_limit]["P1", 1]) ==
"eq_disposal_limit[P1,1] : z_disp[C2,P1,1] ≤ 1"
@test repr(model[:eq_disposal_limit]["P2", 1]) ==
"eq_disposal_limit[P2,1] : z_disp[C1,P2,1] ≤ 2"
@test repr(model[:eq_disposal_limit]["P3", 1]) ==
"eq_disposal_limit[P3,1] : z_disp[L1,P3,1] + z_disp[C1,P3,1] ≤ 5"
@test ("P4", 1) keys(model[:eq_disposal_limit])
end