mirror of
https://github.com/ANL-CEEESA/RELOG.git
synced 2025-12-05 23:38:52 -06:00
Start implementation of circular model
This commit is contained in:
202
test/fixtures/s1-wrong-length.json
vendored
202
test/fixtures/s1-wrong-length.json
vendored
@@ -1,202 +0,0 @@
|
||||
{
|
||||
"parameters": {
|
||||
"time horizon (years)": 2
|
||||
},
|
||||
"products": {
|
||||
"P1": {
|
||||
"transportation cost ($/km/tonne)": [0.015, 0.015],
|
||||
"transportation energy (J/km/tonne)": [0.12, 0.11],
|
||||
"transportation emissions (tonne/km/tonne)": {
|
||||
"CO2": [0.052],
|
||||
"CH4": [0.003, 0.002]
|
||||
},
|
||||
"initial amounts": {
|
||||
"C1": {
|
||||
"latitude (deg)": 7.0,
|
||||
"longitude (deg)": 7.0,
|
||||
"amount (tonne)": [934.56, 934.56]
|
||||
},
|
||||
"C2": {
|
||||
"latitude (deg)": 7.0,
|
||||
"longitude (deg)": 19.0,
|
||||
"amount (tonne)": [198.95, 198.95]
|
||||
},
|
||||
"C3": {
|
||||
"latitude (deg)": 84.0,
|
||||
"longitude (deg)": 76.0,
|
||||
"amount (tonne)": [212.97, 212.97]
|
||||
},
|
||||
"C4": {
|
||||
"latitude (deg)": 21.0,
|
||||
"longitude (deg)": 16.0,
|
||||
"amount (tonne)": [352.19, 352.19]
|
||||
},
|
||||
"C5": {
|
||||
"latitude (deg)": 32.0,
|
||||
"longitude (deg)": 92.0,
|
||||
"amount (tonne)": [510.33, 510.33]
|
||||
},
|
||||
"C6": {
|
||||
"latitude (deg)": 14.0,
|
||||
"longitude (deg)": 62.0,
|
||||
"amount (tonne)": [471.66, 471.66]
|
||||
},
|
||||
"C7": {
|
||||
"latitude (deg)": 30.0,
|
||||
"longitude (deg)": 83.0,
|
||||
"amount (tonne)": [785.21, 785.21]
|
||||
},
|
||||
"C8": {
|
||||
"latitude (deg)": 35.0,
|
||||
"longitude (deg)": 40.0,
|
||||
"amount (tonne)": [706.17, 706.17]
|
||||
},
|
||||
"C9": {
|
||||
"latitude (deg)": 74.0,
|
||||
"longitude (deg)": 52.0,
|
||||
"amount (tonne)": [30.08, 30.08]
|
||||
},
|
||||
"C10": {
|
||||
"latitude (deg)": 22.0,
|
||||
"longitude (deg)": 54.0,
|
||||
"amount (tonne)": [536.52, 536.52]
|
||||
}
|
||||
}
|
||||
},
|
||||
"P2": {
|
||||
"transportation cost ($/km/tonne)": [0.02, 0.02]
|
||||
},
|
||||
"P3": {
|
||||
"transportation cost ($/km/tonne)": [0.0125, 0.0125]
|
||||
},
|
||||
"P4": {
|
||||
"transportation cost ($/km/tonne)": [0.0175, 0.0175]
|
||||
}
|
||||
},
|
||||
"plants": {
|
||||
"F1": {
|
||||
"input": "P1",
|
||||
"outputs (tonne/tonne)": {
|
||||
"P2": 0.2,
|
||||
"P3": 0.5
|
||||
},
|
||||
"energy (GJ/tonne)": [0.12, 0.11],
|
||||
"emissions (tonne/tonne)": {
|
||||
"CO2": [0.052, 0.050],
|
||||
"CH4": [0.003, 0.002]
|
||||
},
|
||||
"locations": {
|
||||
"L1": {
|
||||
"latitude (deg)": 0.0,
|
||||
"longitude (deg)": 0.0,
|
||||
"disposal": {
|
||||
"P2": {
|
||||
"cost ($/tonne)": [-10.0, -10.0],
|
||||
"limit (tonne)": [1.0, 1.0]
|
||||
},
|
||||
"P3": {
|
||||
"cost ($/tonne)": [-10.0, -10.0],
|
||||
"limit (tonne)": [1.0, 1.0]
|
||||
}
|
||||
},
|
||||
"capacities (tonne)": {
|
||||
"250.0": {
|
||||
"opening cost ($)": [500.0, 500.0],
|
||||
"fixed operating cost ($)": [30.0, 30.0],
|
||||
"variable operating cost ($/tonne)": [30.0, 30.0]
|
||||
},
|
||||
"1000.0": {
|
||||
"opening cost ($)": [1250.0, 1250.0],
|
||||
"fixed operating cost ($)": [30.0, 30.0],
|
||||
"variable operating cost ($/tonne)": [30.0, 30.0]
|
||||
}
|
||||
}
|
||||
},
|
||||
"L2": {
|
||||
"latitude (deg)": 0.5,
|
||||
"longitude (deg)": 0.5,
|
||||
"capacities (tonne)": {
|
||||
"0.0": {
|
||||
"opening cost ($)": [1000, 1000],
|
||||
"fixed operating cost ($)": [50.0, 50.0],
|
||||
"variable operating cost ($/tonne)": [50.0, 50.0]
|
||||
},
|
||||
"10000.0": {
|
||||
"opening cost ($)": [10000, 10000],
|
||||
"fixed operating cost ($)": [50.0, 50.0],
|
||||
"variable operating cost ($/tonne)": [50.0, 50.0]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"F2": {
|
||||
"input": "P2",
|
||||
"outputs (tonne/tonne)": {
|
||||
"P3": 0.05,
|
||||
"P4": 0.80
|
||||
},
|
||||
"locations": {
|
||||
"L3": {
|
||||
"latitude (deg)": 25.0,
|
||||
"longitude (deg)": 65.0,
|
||||
"disposal": {
|
||||
"P3": {
|
||||
"cost ($/tonne)": [100.0, 100.0]
|
||||
}
|
||||
},
|
||||
"capacities (tonne)": {
|
||||
"1000.0": {
|
||||
"opening cost ($)": [3000, 3000],
|
||||
"fixed operating cost ($)": [50.0, 50.0],
|
||||
"variable operating cost ($/tonne)": [50.0, 50.0]
|
||||
}
|
||||
}
|
||||
},
|
||||
"L4": {
|
||||
"latitude (deg)": 0.75,
|
||||
"longitude (deg)": 0.20,
|
||||
"capacities (tonne)": {
|
||||
"10000": {
|
||||
"opening cost ($)": [3000, 3000],
|
||||
"fixed operating cost ($)": [50.0, 50.0],
|
||||
"variable operating cost ($/tonne)": [50.0, 50.0]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"F3": {
|
||||
"input": "P4",
|
||||
"locations": {
|
||||
"L5": {
|
||||
"latitude (deg)": 100.0,
|
||||
"longitude (deg)": 100.0,
|
||||
"capacities (tonne)": {
|
||||
"15000": {
|
||||
"opening cost ($)": [0.0, 0.0],
|
||||
"fixed operating cost ($)": [0.0, 0.0],
|
||||
"variable operating cost ($/tonne)": [-15.0, -15.0]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"F4": {
|
||||
"input": "P3",
|
||||
"locations": {
|
||||
"L6": {
|
||||
"latitude (deg)": 50.0,
|
||||
"longitude (deg)": 50.0,
|
||||
"capacities (tonne)": {
|
||||
"10000": {
|
||||
"opening cost ($)": [0.0, 0.0],
|
||||
"fixed operating cost ($)": [0.0, 0.0],
|
||||
"variable operating cost ($/tonne)": [-15.0, -15.0]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
207
test/fixtures/s1.json
vendored
207
test/fixtures/s1.json
vendored
@@ -1,207 +0,0 @@
|
||||
{
|
||||
"parameters": {
|
||||
"time horizon (years)": 2,
|
||||
"distance metric": "driving"
|
||||
},
|
||||
"products": {
|
||||
"P1": {
|
||||
"transportation cost ($/km/tonne)": [0.015, 0.015],
|
||||
"transportation energy (J/km/tonne)": [0.12, 0.11],
|
||||
"transportation emissions (tonne/km/tonne)": {
|
||||
"CO2": [0.052, 0.05],
|
||||
"CH4": [0.003, 0.002]
|
||||
},
|
||||
"initial amounts": {
|
||||
"C1": {
|
||||
"latitude (deg)": 7.0,
|
||||
"longitude (deg)": 7.0,
|
||||
"amount (tonne)": [934.56, 934.56]
|
||||
},
|
||||
"C2": {
|
||||
"latitude (deg)": 7.0,
|
||||
"longitude (deg)": 19.0,
|
||||
"amount (tonne)": [198.95, 198.95]
|
||||
},
|
||||
"C3": {
|
||||
"latitude (deg)": 84.0,
|
||||
"longitude (deg)": 76.0,
|
||||
"amount (tonne)": [212.97, 212.97]
|
||||
},
|
||||
"C4": {
|
||||
"latitude (deg)": 21.0,
|
||||
"longitude (deg)": 16.0,
|
||||
"amount (tonne)": [352.19, 352.19]
|
||||
},
|
||||
"C5": {
|
||||
"latitude (deg)": 32.0,
|
||||
"longitude (deg)": 92.0,
|
||||
"amount (tonne)": [510.33, 510.33]
|
||||
},
|
||||
"C6": {
|
||||
"latitude (deg)": 14.0,
|
||||
"longitude (deg)": 62.0,
|
||||
"amount (tonne)": [471.66, 471.66]
|
||||
},
|
||||
"C7": {
|
||||
"latitude (deg)": 30.0,
|
||||
"longitude (deg)": 83.0,
|
||||
"amount (tonne)": [785.21, 785.21]
|
||||
},
|
||||
"C8": {
|
||||
"latitude (deg)": 35.0,
|
||||
"longitude (deg)": 40.0,
|
||||
"amount (tonne)": [706.17, 706.17]
|
||||
},
|
||||
"C9": {
|
||||
"latitude (deg)": 74.0,
|
||||
"longitude (deg)": 52.0,
|
||||
"amount (tonne)": [30.08, 30.08]
|
||||
},
|
||||
"C10": {
|
||||
"latitude (deg)": 22.0,
|
||||
"longitude (deg)": 54.0,
|
||||
"amount (tonne)": [536.52, 536.52]
|
||||
}
|
||||
},
|
||||
"disposal limit (tonne)": [1.0, 1.0],
|
||||
"disposal cost ($/tonne)": [-1000, -1000],
|
||||
"acquisition cost ($/tonne)": [0.5, 0.5]
|
||||
},
|
||||
"P2": {
|
||||
"transportation cost ($/km/tonne)": [0.02, 0.02]
|
||||
},
|
||||
"P3": {
|
||||
"transportation cost ($/km/tonne)": [0.0125, 0.0125]
|
||||
},
|
||||
"P4": {
|
||||
"transportation cost ($/km/tonne)": [0.0175, 0.0175]
|
||||
}
|
||||
},
|
||||
"plants": {
|
||||
"F1": {
|
||||
"input": "P1",
|
||||
"outputs (tonne/tonne)": {
|
||||
"P2": 0.2,
|
||||
"P3": 0.5
|
||||
},
|
||||
"energy (GJ/tonne)": [0.12, 0.11],
|
||||
"emissions (tonne/tonne)": {
|
||||
"CO2": [0.052, 0.05],
|
||||
"CH4": [0.003, 0.002]
|
||||
},
|
||||
"locations": {
|
||||
"L1": {
|
||||
"latitude (deg)": 0.0,
|
||||
"longitude (deg)": 0.0,
|
||||
"disposal": {
|
||||
"P2": {
|
||||
"cost ($/tonne)": [-10.0, -10.0],
|
||||
"limit (tonne)": [1.0, 1.0]
|
||||
},
|
||||
"P3": {
|
||||
"cost ($/tonne)": [-10.0, -10.0],
|
||||
"limit (tonne)": [1.0, 1.0]
|
||||
}
|
||||
},
|
||||
"initial capacity (tonne)": 500.0,
|
||||
"capacities (tonne)": {
|
||||
"250.0": {
|
||||
"opening cost ($)": [500.0, 500.0],
|
||||
"fixed operating cost ($)": [30.0, 30.0],
|
||||
"variable operating cost ($/tonne)": [30.0, 30.0]
|
||||
},
|
||||
"1000.0": {
|
||||
"opening cost ($)": [1250.0, 1250.0],
|
||||
"fixed operating cost ($)": [30.0, 30.0],
|
||||
"variable operating cost ($/tonne)": [30.0, 30.0]
|
||||
}
|
||||
}
|
||||
},
|
||||
"L2": {
|
||||
"latitude (deg)": 0.5,
|
||||
"longitude (deg)": 0.5,
|
||||
"capacities (tonne)": {
|
||||
"0.0": {
|
||||
"opening cost ($)": [1000, 1000],
|
||||
"fixed operating cost ($)": [50.0, 50.0],
|
||||
"variable operating cost ($/tonne)": [50.0, 50.0]
|
||||
},
|
||||
"10000.0": {
|
||||
"opening cost ($)": [10000, 10000],
|
||||
"fixed operating cost ($)": [50.0, 50.0],
|
||||
"variable operating cost ($/tonne)": [50.0, 50.0]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"F2": {
|
||||
"input": "P2",
|
||||
"outputs (tonne/tonne)": {
|
||||
"P3": 0.05,
|
||||
"P4": 0.8
|
||||
},
|
||||
"locations": {
|
||||
"L3": {
|
||||
"latitude (deg)": 25.0,
|
||||
"longitude (deg)": 65.0,
|
||||
"disposal": {
|
||||
"P3": {
|
||||
"cost ($/tonne)": [100.0, 100.0]
|
||||
}
|
||||
},
|
||||
"capacities (tonne)": {
|
||||
"1000.0": {
|
||||
"opening cost ($)": [3000, 3000],
|
||||
"fixed operating cost ($)": [50.0, 50.0],
|
||||
"variable operating cost ($/tonne)": [50.0, 50.0]
|
||||
}
|
||||
}
|
||||
},
|
||||
"L4": {
|
||||
"latitude (deg)": 0.75,
|
||||
"longitude (deg)": 0.2,
|
||||
"capacities (tonne)": {
|
||||
"10000": {
|
||||
"opening cost ($)": [3000, 3000],
|
||||
"fixed operating cost ($)": [50.0, 50.0],
|
||||
"variable operating cost ($/tonne)": [50.0, 50.0]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"F3": {
|
||||
"input": "P4",
|
||||
"locations": {
|
||||
"L5": {
|
||||
"latitude (deg)": 100.0,
|
||||
"longitude (deg)": 100.0,
|
||||
"capacities (tonne)": {
|
||||
"15000": {
|
||||
"opening cost ($)": [0.0, 0.0],
|
||||
"fixed operating cost ($)": [0.0, 0.0],
|
||||
"variable operating cost ($/tonne)": [-15.0, -15.0]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"F4": {
|
||||
"input": "P3",
|
||||
"locations": {
|
||||
"L6": {
|
||||
"latitude (deg)": 50.0,
|
||||
"longitude (deg)": 50.0,
|
||||
"capacities (tonne)": {
|
||||
"10000": {
|
||||
"opening cost ($)": [0.0, 0.0],
|
||||
"fixed operating cost ($)": [0.0, 0.0],
|
||||
"variable operating cost ($/tonne)": [-15.0, -15.0]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
BIN
test/fixtures/s1.zip
vendored
BIN
test/fixtures/s1.zip
vendored
Binary file not shown.
347
test/fixtures/s2.json
vendored
347
test/fixtures/s2.json
vendored
@@ -1,347 +0,0 @@
|
||||
{
|
||||
"parameters": {
|
||||
"time horizon (years)": 2
|
||||
},
|
||||
"products": {
|
||||
"P1": {
|
||||
"transportation cost ($/km/tonne)": [
|
||||
0.015,
|
||||
0.015
|
||||
],
|
||||
"transportation energy (J/km/tonne)": [
|
||||
0.12,
|
||||
0.11
|
||||
],
|
||||
"transportation emissions (tonne/km/tonne)": {
|
||||
"CO2": [
|
||||
0.052,
|
||||
0.050
|
||||
],
|
||||
"CH4": [
|
||||
0.003,
|
||||
0.002
|
||||
]
|
||||
},
|
||||
"initial amounts": {
|
||||
"C1": {
|
||||
"location": "2018-us-county:17043",
|
||||
"amount (tonne)": [
|
||||
934.56,
|
||||
934.56
|
||||
]
|
||||
},
|
||||
"C2": {
|
||||
"latitude (deg)": 7.0,
|
||||
"longitude (deg)": 19.0,
|
||||
"amount (tonne)": [
|
||||
198.95,
|
||||
198.95
|
||||
]
|
||||
},
|
||||
"C3": {
|
||||
"latitude (deg)": 84.0,
|
||||
"longitude (deg)": 76.0,
|
||||
"amount (tonne)": [
|
||||
212.97,
|
||||
212.97
|
||||
]
|
||||
},
|
||||
"C4": {
|
||||
"latitude (deg)": 21.0,
|
||||
"longitude (deg)": 16.0,
|
||||
"amount (tonne)": [
|
||||
352.19,
|
||||
352.19
|
||||
]
|
||||
},
|
||||
"C5": {
|
||||
"latitude (deg)": 32.0,
|
||||
"longitude (deg)": 92.0,
|
||||
"amount (tonne)": [
|
||||
510.33,
|
||||
510.33
|
||||
]
|
||||
},
|
||||
"C6": {
|
||||
"latitude (deg)": 14.0,
|
||||
"longitude (deg)": 62.0,
|
||||
"amount (tonne)": [
|
||||
471.66,
|
||||
471.66
|
||||
]
|
||||
},
|
||||
"C7": {
|
||||
"latitude (deg)": 30.0,
|
||||
"longitude (deg)": 83.0,
|
||||
"amount (tonne)": [
|
||||
785.21,
|
||||
785.21
|
||||
]
|
||||
},
|
||||
"C8": {
|
||||
"latitude (deg)": 35.0,
|
||||
"longitude (deg)": 40.0,
|
||||
"amount (tonne)": [
|
||||
706.17,
|
||||
706.17
|
||||
]
|
||||
},
|
||||
"C9": {
|
||||
"latitude (deg)": 74.0,
|
||||
"longitude (deg)": 52.0,
|
||||
"amount (tonne)": [
|
||||
30.08,
|
||||
30.08
|
||||
]
|
||||
},
|
||||
"C10": {
|
||||
"latitude (deg)": 22.0,
|
||||
"longitude (deg)": 54.0,
|
||||
"amount (tonne)": [
|
||||
536.52,
|
||||
536.52
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"P2": {
|
||||
"transportation cost ($/km/tonne)": [
|
||||
0.02,
|
||||
0.02
|
||||
]
|
||||
},
|
||||
"P3": {
|
||||
"transportation cost ($/km/tonne)": [
|
||||
0.0125,
|
||||
0.0125
|
||||
]
|
||||
},
|
||||
"P4": {
|
||||
"transportation cost ($/km/tonne)": [
|
||||
0.0175,
|
||||
0.0175
|
||||
]
|
||||
}
|
||||
},
|
||||
"plants": {
|
||||
"F1": {
|
||||
"input": "P1",
|
||||
"outputs (tonne/tonne)": {
|
||||
"P2": 0.2,
|
||||
"P3": 0.5
|
||||
},
|
||||
"energy (GJ/tonne)": [
|
||||
0.12,
|
||||
0.11
|
||||
],
|
||||
"emissions (tonne/tonne)": {
|
||||
"CO2": [
|
||||
0.052,
|
||||
0.050
|
||||
],
|
||||
"CH4": [
|
||||
0.003,
|
||||
0.002
|
||||
]
|
||||
},
|
||||
"locations": {
|
||||
"L1": {
|
||||
"latitude (deg)": 0.0,
|
||||
"longitude (deg)": 0.0,
|
||||
"disposal": {
|
||||
"P2": {
|
||||
"cost ($/tonne)": [
|
||||
-10.0,
|
||||
-10.0
|
||||
],
|
||||
"limit (tonne)": [
|
||||
1.0,
|
||||
1.0
|
||||
]
|
||||
},
|
||||
"P3": {
|
||||
"cost ($/tonne)": [
|
||||
-10.0,
|
||||
-10.0
|
||||
],
|
||||
"limit (tonne)": [
|
||||
1.0,
|
||||
1.0
|
||||
]
|
||||
}
|
||||
},
|
||||
"capacities (tonne)": {
|
||||
"250.0": {
|
||||
"opening cost ($)": [
|
||||
500.0,
|
||||
500.0
|
||||
],
|
||||
"fixed operating cost ($)": [
|
||||
30.0,
|
||||
30.0
|
||||
],
|
||||
"variable operating cost ($/tonne)": [
|
||||
30.0,
|
||||
30.0
|
||||
]
|
||||
},
|
||||
"1000.0": {
|
||||
"opening cost ($)": [
|
||||
1250.0,
|
||||
1250.0
|
||||
],
|
||||
"fixed operating cost ($)": [
|
||||
30.0,
|
||||
30.0
|
||||
],
|
||||
"variable operating cost ($/tonne)": [
|
||||
30.0,
|
||||
30.0
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"L2": {
|
||||
"location": "2018-us-county:17043",
|
||||
"capacities (tonne)": {
|
||||
"0.0": {
|
||||
"opening cost ($)": [
|
||||
1000,
|
||||
1000
|
||||
],
|
||||
"fixed operating cost ($)": [
|
||||
50.0,
|
||||
50.0
|
||||
],
|
||||
"variable operating cost ($/tonne)": [
|
||||
50.0,
|
||||
50.0
|
||||
]
|
||||
},
|
||||
"10000.0": {
|
||||
"opening cost ($)": [
|
||||
10000,
|
||||
10000
|
||||
],
|
||||
"fixed operating cost ($)": [
|
||||
50.0,
|
||||
50.0
|
||||
],
|
||||
"variable operating cost ($/tonne)": [
|
||||
50.0,
|
||||
50.0
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"F2": {
|
||||
"input": "P2",
|
||||
"outputs (tonne/tonne)": {
|
||||
"P3": 0.05,
|
||||
"P4": 0.80
|
||||
},
|
||||
"locations": {
|
||||
"L3": {
|
||||
"latitude (deg)": 25.0,
|
||||
"longitude (deg)": 65.0,
|
||||
"disposal": {
|
||||
"P3": {
|
||||
"cost ($/tonne)": [
|
||||
100.0,
|
||||
100.0
|
||||
]
|
||||
}
|
||||
},
|
||||
"capacities (tonne)": {
|
||||
"1000.0": {
|
||||
"opening cost ($)": [
|
||||
3000,
|
||||
3000
|
||||
],
|
||||
"fixed operating cost ($)": [
|
||||
50.0,
|
||||
50.0
|
||||
],
|
||||
"variable operating cost ($/tonne)": [
|
||||
50.0,
|
||||
50.0
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"L4": {
|
||||
"latitude (deg)": 0.75,
|
||||
"longitude (deg)": 0.20,
|
||||
"capacities (tonne)": {
|
||||
"10000": {
|
||||
"opening cost ($)": [
|
||||
3000,
|
||||
3000
|
||||
],
|
||||
"fixed operating cost ($)": [
|
||||
50.0,
|
||||
50.0
|
||||
],
|
||||
"variable operating cost ($/tonne)": [
|
||||
50.0,
|
||||
50.0
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"F3": {
|
||||
"input": "P4",
|
||||
"locations": {
|
||||
"L5": {
|
||||
"latitude (deg)": 100.0,
|
||||
"longitude (deg)": 100.0,
|
||||
"capacities (tonne)": {
|
||||
"15000": {
|
||||
"opening cost ($)": [
|
||||
0.0,
|
||||
0.0
|
||||
],
|
||||
"fixed operating cost ($)": [
|
||||
0.0,
|
||||
0.0
|
||||
],
|
||||
"variable operating cost ($/tonne)": [
|
||||
-15.0,
|
||||
-15.0
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"F4": {
|
||||
"input": "P3",
|
||||
"locations": {
|
||||
"L6": {
|
||||
"latitude (deg)": 50.0,
|
||||
"longitude (deg)": 50.0,
|
||||
"capacities (tonne)": {
|
||||
"10000": {
|
||||
"opening cost ($)": [
|
||||
0.0,
|
||||
0.0
|
||||
],
|
||||
"fixed operating cost ($)": [
|
||||
0.0,
|
||||
0.0
|
||||
],
|
||||
"variable operating cost ($/tonne)": [
|
||||
-15.0,
|
||||
-15.0
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
107
test/fixtures/simple.json
vendored
Normal file
107
test/fixtures/simple.json
vendored
Normal file
@@ -0,0 +1,107 @@
|
||||
{
|
||||
"parameters": {
|
||||
"time horizon (years)": 4,
|
||||
"building period (years)": [1],
|
||||
"distance metric": "driving"
|
||||
},
|
||||
"products": {
|
||||
"P1": {
|
||||
"transportation cost ($/km/tonne)": [0.015, 0.015, 0.015, 0.015],
|
||||
"transportation energy (J/km/tonne)": [0.12, 0.12, 0.12, 0.12],
|
||||
"transportation emissions (tonne/km/tonne)": {
|
||||
"CO2": [0.052, 0.052, 0.052, 0.052],
|
||||
"CH4": [0.003, 0.003, 0.003, 0.003]
|
||||
}
|
||||
},
|
||||
"P2": {
|
||||
"transportation cost ($/km/tonne)": [0.015, 0.015, 0.015, 0.015],
|
||||
"transportation energy (J/km/tonne)": [0.12, 0.12, 0.12, 0.12],
|
||||
"transportation emissions (tonne/km/tonne)": {
|
||||
"CO2": [0.052, 0.052, 0.052, 0.052],
|
||||
"CH4": [0.003, 0.003, 0.003, 0.003]
|
||||
}
|
||||
},
|
||||
"P3": {
|
||||
"transportation cost ($/km/tonne)": [0.015, 0.015, 0.015, 0.015],
|
||||
"transportation energy (J/km/tonne)": [0.12, 0.12, 0.12, 0.12],
|
||||
"transportation emissions (tonne/km/tonne)": {
|
||||
"CO2": [0.052, 0.052, 0.052, 0.052],
|
||||
"CH4": [0.003, 0.003, 0.003, 0.003]
|
||||
}
|
||||
},
|
||||
"P4": {
|
||||
"transportation cost ($/km/tonne)": [0.015, 0.015, 0.015, 0.015],
|
||||
"transportation energy (J/km/tonne)": [0.12, 0.12, 0.12, 0.12],
|
||||
"transportation emissions (tonne/km/tonne)": {
|
||||
"CO2": [0.052, 0.052, 0.052, 0.052],
|
||||
"CH4": [0.003, 0.003, 0.003, 0.003]
|
||||
}
|
||||
}
|
||||
},
|
||||
"centers": {
|
||||
"C1": {
|
||||
"latitude (deg)": 41.881,
|
||||
"longitude (deg)": -87.623,
|
||||
"input": "P1",
|
||||
"outputs": ["P2", "P3"],
|
||||
"fixed output (tonne)": {
|
||||
"P2": [100, 50, 0, 0],
|
||||
"P3": [20, 10, 0, 0]
|
||||
},
|
||||
"variable output (tonne/tonne)": {
|
||||
"P2": [0.12, 0.25, 0.12, 0.0],
|
||||
"P3": [0.25, 0.25, 0.25, 0.0]
|
||||
},
|
||||
"revenue ($/tonne)": [12.0, 12.0, 12.0, 12.0],
|
||||
"collection cost ($/tonne)": {
|
||||
"P2": [0.25, 0.25, 0.25, 0.25],
|
||||
"P3": [0.37, 0.37, 0.37, 0.37]
|
||||
},
|
||||
"operating cost ($)": [150.0, 150.0, 150.0, 150.0],
|
||||
"disposal limit (tonne)": {
|
||||
"P2": [0, 0, 0, 0],
|
||||
"P3": [null, null, null, null]
|
||||
},
|
||||
"disposal cost ($/tonne)": {
|
||||
"P2": [0.23, 0.23, 0.23, 0.23],
|
||||
"P3": [1.0, 1.0, 1.0, 1.0]
|
||||
}
|
||||
},
|
||||
"C2": {
|
||||
"latitude (deg)": 41.881,
|
||||
"longitude (deg)": -87.623,
|
||||
"input": null,
|
||||
"outputs": ["P4"],
|
||||
"variable output (tonne/tonne)": {
|
||||
"P4": [0, 0, 0, 0]
|
||||
},
|
||||
"fixed output (tonne)": {
|
||||
"P4": [50, 60, 70, 80]
|
||||
},
|
||||
"revenue ($/tonne)": null,
|
||||
"collection cost ($/tonne)": {
|
||||
"P4": [0.25, 0.25, 0.25, 0.25]
|
||||
},
|
||||
"operating cost ($)": [150.0, 150.0, 150.0, 150.0],
|
||||
"disposal limit (tonne)": {
|
||||
"P4": [null, null, null, null]
|
||||
},
|
||||
"disposal cost ($/tonne)": {
|
||||
"P4": [0, 0, 0, 0]
|
||||
}
|
||||
},
|
||||
"C3": {
|
||||
"latitude (deg)": 41.881,
|
||||
"longitude (deg)": -87.623,
|
||||
"input": "P1",
|
||||
"outputs": [],
|
||||
"variable output (tonne/tonne)": {},
|
||||
"constant output (tonne)": {},
|
||||
"revenue ($/tonne)": [12.0, 12.0, 12.0, 12.0],
|
||||
"collection cost ($/tonne)": {},
|
||||
"operating cost ($)": [150.0, 150.0, 150.0, 150.0],
|
||||
"disposal limit (tonne)": {},
|
||||
"disposal cost ($/tonne)": {}
|
||||
}
|
||||
}
|
||||
}
|
||||
950
test/fixtures/solutions/s1.json
vendored
950
test/fixtures/solutions/s1.json
vendored
@@ -1,950 +0,0 @@
|
||||
{
|
||||
"Energy": {
|
||||
"Plants (GJ)": [
|
||||
568.6368,
|
||||
521.2504
|
||||
],
|
||||
"Transportation (GJ)": [
|
||||
3.120910400232,
|
||||
2.860834533546
|
||||
]
|
||||
},
|
||||
"Costs": {
|
||||
"Variable operating ($)": [
|
||||
216672.818,
|
||||
216672.818
|
||||
],
|
||||
"Transportation ($)": [
|
||||
714499.27483131,
|
||||
714499.27483131
|
||||
],
|
||||
"Disposal ($)": [
|
||||
-20.0,
|
||||
-20.0
|
||||
],
|
||||
"Total ($)": [
|
||||
939896.86883131,
|
||||
931282.09283131
|
||||
],
|
||||
"Fixed operating ($)": [
|
||||
130.0,
|
||||
130.0
|
||||
],
|
||||
"Opening ($)": [
|
||||
4500.0,
|
||||
0.0
|
||||
],
|
||||
"Expansion ($)": [
|
||||
4114.776,
|
||||
0.0
|
||||
]
|
||||
},
|
||||
"Plants": {
|
||||
"F3": {
|
||||
"L5": {
|
||||
"Opening cost ($)": [
|
||||
0.0,
|
||||
0.0
|
||||
],
|
||||
"Emissions (tonne)": {},
|
||||
"Expansion cost ($)": [
|
||||
0.0,
|
||||
0.0
|
||||
],
|
||||
"Longitude (deg)": 100.0,
|
||||
"Energy (GJ)": [
|
||||
0.0,
|
||||
0.0
|
||||
],
|
||||
"Total output": {},
|
||||
"Capacity (tonne)": [
|
||||
15000.0,
|
||||
15000.0
|
||||
],
|
||||
"Latitude (deg)": 100.0,
|
||||
"Output": {
|
||||
"Send": {},
|
||||
"Dispose": {}
|
||||
},
|
||||
"Total input (tonne)": [
|
||||
757.3824000000001,
|
||||
757.3824000000001
|
||||
],
|
||||
"Fixed operating cost ($)": [
|
||||
0.0,
|
||||
0.0
|
||||
],
|
||||
"Input": {
|
||||
"F2": {
|
||||
"L4": {
|
||||
"Distance (km)": 8811.73,
|
||||
"Amount (tonne)": [
|
||||
757.3824000000001,
|
||||
757.3824000000001
|
||||
],
|
||||
"Transportation energy (J)": [
|
||||
0.0,
|
||||
0.0
|
||||
],
|
||||
"Transportation cost ($)": [
|
||||
116792.36127216002,
|
||||
116792.36127216002
|
||||
],
|
||||
"Longitude (deg)": 0.2,
|
||||
"Variable operating cost ($)": [
|
||||
-11360.736,
|
||||
-11360.736
|
||||
],
|
||||
"Latitude (deg)": 0.75,
|
||||
"Emissions (tonne)": {}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"F1": {
|
||||
"L1": {
|
||||
"Opening cost ($)": [
|
||||
500.0,
|
||||
0.0
|
||||
],
|
||||
"Emissions (tonne)": {
|
||||
"CH4": [
|
||||
3.0,
|
||||
2.0
|
||||
],
|
||||
"CO2": [
|
||||
52.0,
|
||||
50.0
|
||||
]
|
||||
},
|
||||
"Expansion cost ($)": [
|
||||
750.0,
|
||||
0.0
|
||||
],
|
||||
"Longitude (deg)": 0.0,
|
||||
"Energy (GJ)": [
|
||||
120.0,
|
||||
110.0
|
||||
],
|
||||
"Total output": {
|
||||
"P2": [
|
||||
200.0,
|
||||
200.0
|
||||
],
|
||||
"P3": [
|
||||
500.0,
|
||||
500.0
|
||||
]
|
||||
},
|
||||
"Capacity (tonne)": [
|
||||
1000.0,
|
||||
1000.0
|
||||
],
|
||||
"Latitude (deg)": 0.0,
|
||||
"Output": {
|
||||
"Send": {
|
||||
"P2": {
|
||||
"F2": {
|
||||
"L4": {
|
||||
"Distance (km)": 85.87,
|
||||
"Amount (tonne)": [
|
||||
199.0,
|
||||
199.0
|
||||
],
|
||||
"Longitude (deg)": 0.2,
|
||||
"Latitude (deg)": 0.75
|
||||
}
|
||||
}
|
||||
},
|
||||
"P3": {
|
||||
"F4": {
|
||||
"L6": {
|
||||
"Distance (km)": 6893.41,
|
||||
"Amount (tonne)": [
|
||||
499.0,
|
||||
499.0
|
||||
],
|
||||
"Longitude (deg)": 50.0,
|
||||
"Latitude (deg)": 50.0
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"Dispose": {
|
||||
"P2": {
|
||||
"Amount (tonne)": [
|
||||
1.0,
|
||||
1.0
|
||||
],
|
||||
"Cost ($)": [
|
||||
-10.0,
|
||||
-10.0
|
||||
]
|
||||
},
|
||||
"P3": {
|
||||
"Amount (tonne)": [
|
||||
1.0,
|
||||
1.0
|
||||
],
|
||||
"Cost ($)": [
|
||||
-10.0,
|
||||
-10.0
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"Total input (tonne)": [
|
||||
1000.0,
|
||||
1000.0
|
||||
],
|
||||
"Fixed operating cost ($)": [
|
||||
30.0,
|
||||
30.0
|
||||
],
|
||||
"Input": {
|
||||
"Origin": {
|
||||
"C3": {
|
||||
"Distance (km)": 8889.75,
|
||||
"Amount (tonne)": [
|
||||
212.97000000000003,
|
||||
212.97000000000003
|
||||
],
|
||||
"Transportation energy (J)": [
|
||||
227190.00690000004,
|
||||
208257.50632500005
|
||||
],
|
||||
"Transportation cost ($)": [
|
||||
28398.750862500005,
|
||||
28398.750862500005
|
||||
],
|
||||
"Longitude (deg)": 76.0,
|
||||
"Variable operating cost ($)": [
|
||||
6389.1,
|
||||
6389.1
|
||||
],
|
||||
"Latitude (deg)": 84.0,
|
||||
"Emissions (tonne)": {
|
||||
"CH4": [
|
||||
0.6389100000000001,
|
||||
0.42594000000000004
|
||||
],
|
||||
"CO2": [
|
||||
11.074440000000001,
|
||||
10.648500000000002
|
||||
]
|
||||
}
|
||||
},
|
||||
"C7": {
|
||||
"Distance (km)": 8526.39,
|
||||
"Amount (tonne)": [
|
||||
246.62,
|
||||
246.62
|
||||
],
|
||||
"Transportation energy (J)": [
|
||||
252333.396216,
|
||||
231305.613198
|
||||
],
|
||||
"Transportation cost ($)": [
|
||||
31541.674527,
|
||||
31541.674527
|
||||
],
|
||||
"Longitude (deg)": 83.0,
|
||||
"Variable operating cost ($)": [
|
||||
7398.6,
|
||||
7398.6
|
||||
],
|
||||
"Latitude (deg)": 30.0,
|
||||
"Emissions (tonne)": {
|
||||
"CH4": [
|
||||
0.7398600000000001,
|
||||
0.49324
|
||||
],
|
||||
"CO2": [
|
||||
12.82424,
|
||||
12.331000000000001
|
||||
]
|
||||
}
|
||||
},
|
||||
"C5": {
|
||||
"Distance (km)": 9148.52,
|
||||
"Amount (tonne)": [
|
||||
510.3299999999999,
|
||||
510.3299999999999
|
||||
],
|
||||
"Transportation energy (J)": [
|
||||
560251.7053919999,
|
||||
513564.0632759999
|
||||
],
|
||||
"Transportation cost ($)": [
|
||||
70031.46317399999,
|
||||
70031.46317399999
|
||||
],
|
||||
"Longitude (deg)": 92.0,
|
||||
"Variable operating cost ($)": [
|
||||
15309.899999999998,
|
||||
15309.899999999998
|
||||
],
|
||||
"Latitude (deg)": 32.0,
|
||||
"Emissions (tonne)": {
|
||||
"CH4": [
|
||||
1.5309899999999999,
|
||||
1.02066
|
||||
],
|
||||
"CO2": [
|
||||
26.537159999999997,
|
||||
25.516499999999997
|
||||
]
|
||||
}
|
||||
},
|
||||
"C9": {
|
||||
"Distance (km)": 8201.21,
|
||||
"Amount (tonne)": [
|
||||
30.08,
|
||||
30.08
|
||||
],
|
||||
"Transportation energy (J)": [
|
||||
29603.087615999993,
|
||||
27136.163647999994
|
||||
],
|
||||
"Transportation cost ($)": [
|
||||
3700.385951999999,
|
||||
3700.385951999999
|
||||
],
|
||||
"Longitude (deg)": 52.0,
|
||||
"Variable operating cost ($)": [
|
||||
902.4,
|
||||
902.4
|
||||
],
|
||||
"Latitude (deg)": 74.0,
|
||||
"Emissions (tonne)": {
|
||||
"CH4": [
|
||||
0.09024,
|
||||
0.06016
|
||||
],
|
||||
"CO2": [
|
||||
1.5641599999999998,
|
||||
1.504
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"L2": {
|
||||
"Opening cost ($)": [
|
||||
999.9999999999999,
|
||||
0.0
|
||||
],
|
||||
"Emissions (tonne)": {
|
||||
"CH4": [
|
||||
11.21592,
|
||||
7.4772799999999995
|
||||
],
|
||||
"CO2": [
|
||||
194.40928,
|
||||
186.93200000000002
|
||||
]
|
||||
},
|
||||
"Expansion cost ($)": [
|
||||
3364.7759999999994,
|
||||
0.0
|
||||
],
|
||||
"Longitude (deg)": 0.5,
|
||||
"Energy (GJ)": [
|
||||
448.6368,
|
||||
411.2504
|
||||
],
|
||||
"Total output": {
|
||||
"P2": [
|
||||
747.728,
|
||||
747.728
|
||||
],
|
||||
"P3": [
|
||||
1869.32,
|
||||
1869.32
|
||||
]
|
||||
},
|
||||
"Capacity (tonne)": [
|
||||
3738.6399999999994,
|
||||
3738.6399999999994
|
||||
],
|
||||
"Latitude (deg)": 0.5,
|
||||
"Output": {
|
||||
"Send": {
|
||||
"P2": {
|
||||
"F2": {
|
||||
"L4": {
|
||||
"Distance (km)": 43.35,
|
||||
"Amount (tonne)": [
|
||||
747.728,
|
||||
747.728
|
||||
],
|
||||
"Longitude (deg)": 0.2,
|
||||
"Latitude (deg)": 0.75
|
||||
}
|
||||
}
|
||||
},
|
||||
"P3": {
|
||||
"F4": {
|
||||
"L6": {
|
||||
"Distance (km)": 6828.89,
|
||||
"Amount (tonne)": [
|
||||
1869.32,
|
||||
1869.32
|
||||
],
|
||||
"Longitude (deg)": 50.0,
|
||||
"Latitude (deg)": 50.0
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"Dispose": {}
|
||||
},
|
||||
"Total input (tonne)": [
|
||||
3738.64,
|
||||
3738.64
|
||||
],
|
||||
"Fixed operating cost ($)": [
|
||||
50.0,
|
||||
50.0
|
||||
],
|
||||
"Input": {
|
||||
"Origin": {
|
||||
"C1": {
|
||||
"Distance (km)": 1017.44,
|
||||
"Amount (tonne)": [
|
||||
934.56,
|
||||
934.56
|
||||
],
|
||||
"Transportation energy (J)": [
|
||||
114103.047168,
|
||||
104594.459904
|
||||
],
|
||||
"Transportation cost ($)": [
|
||||
14262.880895999999,
|
||||
14262.880895999999
|
||||
],
|
||||
"Longitude (deg)": 7.0,
|
||||
"Variable operating cost ($)": [
|
||||
46728.0,
|
||||
46728.0
|
||||
],
|
||||
"Latitude (deg)": 7.0,
|
||||
"Emissions (tonne)": {
|
||||
"CH4": [
|
||||
2.80368,
|
||||
1.86912
|
||||
],
|
||||
"CO2": [
|
||||
48.59712,
|
||||
46.728
|
||||
]
|
||||
}
|
||||
},
|
||||
"C2": {
|
||||
"Distance (km)": 2165.47,
|
||||
"Amount (tonne)": [
|
||||
198.95,
|
||||
198.95
|
||||
],
|
||||
"Transportation energy (J)": [
|
||||
51698.430779999995,
|
||||
47390.228214999996
|
||||
],
|
||||
"Transportation cost ($)": [
|
||||
6462.303847499999,
|
||||
6462.303847499999
|
||||
],
|
||||
"Longitude (deg)": 19.0,
|
||||
"Variable operating cost ($)": [
|
||||
9947.5,
|
||||
9947.5
|
||||
],
|
||||
"Latitude (deg)": 7.0,
|
||||
"Emissions (tonne)": {
|
||||
"CH4": [
|
||||
0.59685,
|
||||
0.3979
|
||||
],
|
||||
"CO2": [
|
||||
10.3454,
|
||||
9.9475
|
||||
]
|
||||
}
|
||||
},
|
||||
"C8": {
|
||||
"Distance (km)": 5421.1,
|
||||
"Amount (tonne)": [
|
||||
706.17,
|
||||
706.17
|
||||
],
|
||||
"Transportation energy (J)": [
|
||||
459386.18243999995,
|
||||
421104.00057
|
||||
],
|
||||
"Transportation cost ($)": [
|
||||
57423.272805,
|
||||
57423.272805
|
||||
],
|
||||
"Longitude (deg)": 40.0,
|
||||
"Variable operating cost ($)": [
|
||||
35308.5,
|
||||
35308.5
|
||||
],
|
||||
"Latitude (deg)": 35.0,
|
||||
"Emissions (tonne)": {
|
||||
"CH4": [
|
||||
2.11851,
|
||||
1.41234
|
||||
],
|
||||
"CO2": [
|
||||
36.720839999999995,
|
||||
35.3085
|
||||
]
|
||||
}
|
||||
},
|
||||
"C6": {
|
||||
"Distance (km)": 6595.52,
|
||||
"Amount (tonne)": [
|
||||
471.66,
|
||||
471.66
|
||||
],
|
||||
"Transportation energy (J)": [
|
||||
373301.15558400005,
|
||||
342192.72595200007
|
||||
],
|
||||
"Transportation cost ($)": [
|
||||
46662.64444800001,
|
||||
46662.64444800001
|
||||
],
|
||||
"Longitude (deg)": 62.0,
|
||||
"Variable operating cost ($)": [
|
||||
23583.0,
|
||||
23583.0
|
||||
],
|
||||
"Latitude (deg)": 14.0,
|
||||
"Emissions (tonne)": {
|
||||
"CH4": [
|
||||
1.4149800000000001,
|
||||
0.94332
|
||||
],
|
||||
"CO2": [
|
||||
24.526320000000002,
|
||||
23.583000000000002
|
||||
]
|
||||
}
|
||||
},
|
||||
"C10": {
|
||||
"Distance (km)": 6014.13,
|
||||
"Amount (tonne)": [
|
||||
536.52,
|
||||
536.52
|
||||
],
|
||||
"Transportation energy (J)": [
|
||||
387204.123312,
|
||||
354937.113036
|
||||
],
|
||||
"Transportation cost ($)": [
|
||||
48400.515413999994,
|
||||
48400.515413999994
|
||||
],
|
||||
"Longitude (deg)": 54.0,
|
||||
"Variable operating cost ($)": [
|
||||
26826.0,
|
||||
26826.0
|
||||
],
|
||||
"Latitude (deg)": 22.0,
|
||||
"Emissions (tonne)": {
|
||||
"CH4": [
|
||||
1.6095599999999999,
|
||||
1.07304
|
||||
],
|
||||
"CO2": [
|
||||
27.89904,
|
||||
26.826
|
||||
]
|
||||
}
|
||||
},
|
||||
"C4": {
|
||||
"Distance (km)": 2802.12,
|
||||
"Amount (tonne)": [
|
||||
352.19,
|
||||
352.19
|
||||
],
|
||||
"Transportation energy (J)": [
|
||||
118425.43713599998,
|
||||
108556.65070799999
|
||||
],
|
||||
"Transportation cost ($)": [
|
||||
14803.179642,
|
||||
14803.179642
|
||||
],
|
||||
"Longitude (deg)": 16.0,
|
||||
"Variable operating cost ($)": [
|
||||
17609.5,
|
||||
17609.5
|
||||
],
|
||||
"Latitude (deg)": 21.0,
|
||||
"Emissions (tonne)": {
|
||||
"CH4": [
|
||||
1.05657,
|
||||
0.70438
|
||||
],
|
||||
"CO2": [
|
||||
18.313879999999997,
|
||||
17.6095
|
||||
]
|
||||
}
|
||||
},
|
||||
"C7": {
|
||||
"Distance (km)": 8469.86,
|
||||
"Amount (tonne)": [
|
||||
538.59,
|
||||
538.59
|
||||
],
|
||||
"Transportation energy (J)": [
|
||||
547413.827688,
|
||||
501796.008714
|
||||
],
|
||||
"Transportation cost ($)": [
|
||||
68426.728461,
|
||||
68426.728461
|
||||
],
|
||||
"Longitude (deg)": 83.0,
|
||||
"Variable operating cost ($)": [
|
||||
26929.5,
|
||||
26929.5
|
||||
],
|
||||
"Latitude (deg)": 30.0,
|
||||
"Emissions (tonne)": {
|
||||
"CH4": [
|
||||
1.6157700000000002,
|
||||
1.07718
|
||||
],
|
||||
"CO2": [
|
||||
28.00668,
|
||||
26.929500000000004
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"F2": {
|
||||
"L4": {
|
||||
"Opening cost ($)": [
|
||||
2999.9999999999995,
|
||||
0.0
|
||||
],
|
||||
"Emissions (tonne)": {},
|
||||
"Expansion cost ($)": [
|
||||
0.0,
|
||||
0.0
|
||||
],
|
||||
"Longitude (deg)": 0.2,
|
||||
"Energy (GJ)": [
|
||||
0.0,
|
||||
0.0
|
||||
],
|
||||
"Total output": {
|
||||
"P4": [
|
||||
757.3824000000001,
|
||||
757.3824000000001
|
||||
],
|
||||
"P3": [
|
||||
47.336400000000005,
|
||||
47.336400000000005
|
||||
]
|
||||
},
|
||||
"Capacity (tonne)": [
|
||||
10000.0,
|
||||
10000.0
|
||||
],
|
||||
"Latitude (deg)": 0.75,
|
||||
"Output": {
|
||||
"Send": {
|
||||
"P4": {
|
||||
"F3": {
|
||||
"L5": {
|
||||
"Distance (km)": 8811.73,
|
||||
"Amount (tonne)": [
|
||||
757.3824000000001,
|
||||
757.3824000000001
|
||||
],
|
||||
"Longitude (deg)": 100.0,
|
||||
"Latitude (deg)": 100.0
|
||||
}
|
||||
}
|
||||
},
|
||||
"P3": {
|
||||
"F4": {
|
||||
"L6": {
|
||||
"Distance (km)": 6824.63,
|
||||
"Amount (tonne)": [
|
||||
47.336400000000005,
|
||||
47.336400000000005
|
||||
],
|
||||
"Longitude (deg)": 50.0,
|
||||
"Latitude (deg)": 50.0
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"Dispose": {}
|
||||
},
|
||||
"Total input (tonne)": [
|
||||
946.728,
|
||||
946.728
|
||||
],
|
||||
"Fixed operating cost ($)": [
|
||||
50.0,
|
||||
50.0
|
||||
],
|
||||
"Input": {
|
||||
"F1": {
|
||||
"L1": {
|
||||
"Distance (km)": 85.87,
|
||||
"Amount (tonne)": [
|
||||
199.0,
|
||||
199.0
|
||||
],
|
||||
"Transportation energy (J)": [
|
||||
0.0,
|
||||
0.0
|
||||
],
|
||||
"Transportation cost ($)": [
|
||||
341.7626,
|
||||
341.7626
|
||||
],
|
||||
"Longitude (deg)": 0.0,
|
||||
"Variable operating cost ($)": [
|
||||
9950.0,
|
||||
9950.0
|
||||
],
|
||||
"Latitude (deg)": 0.0,
|
||||
"Emissions (tonne)": {}
|
||||
},
|
||||
"L2": {
|
||||
"Distance (km)": 43.35,
|
||||
"Amount (tonne)": [
|
||||
747.728,
|
||||
747.728
|
||||
],
|
||||
"Transportation energy (J)": [
|
||||
0.0,
|
||||
0.0
|
||||
],
|
||||
"Transportation cost ($)": [
|
||||
648.280176,
|
||||
648.280176
|
||||
],
|
||||
"Longitude (deg)": 0.5,
|
||||
"Variable operating cost ($)": [
|
||||
37386.399999999994,
|
||||
37386.399999999994
|
||||
],
|
||||
"Latitude (deg)": 0.5,
|
||||
"Emissions (tonne)": {}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"F4": {
|
||||
"L6": {
|
||||
"Opening cost ($)": [
|
||||
0.0,
|
||||
0.0
|
||||
],
|
||||
"Emissions (tonne)": {},
|
||||
"Expansion cost ($)": [
|
||||
0.0,
|
||||
0.0
|
||||
],
|
||||
"Longitude (deg)": 50.0,
|
||||
"Energy (GJ)": [
|
||||
0.0,
|
||||
0.0
|
||||
],
|
||||
"Total output": {},
|
||||
"Capacity (tonne)": [
|
||||
10000.0,
|
||||
10000.0
|
||||
],
|
||||
"Latitude (deg)": 50.0,
|
||||
"Output": {
|
||||
"Send": {},
|
||||
"Dispose": {}
|
||||
},
|
||||
"Total input (tonne)": [
|
||||
2415.6564,
|
||||
2415.6564
|
||||
],
|
||||
"Fixed operating cost ($)": [
|
||||
0.0,
|
||||
0.0
|
||||
],
|
||||
"Input": {
|
||||
"F1": {
|
||||
"L1": {
|
||||
"Distance (km)": 6893.41,
|
||||
"Amount (tonne)": [
|
||||
499.0,
|
||||
499.0
|
||||
],
|
||||
"Transportation energy (J)": [
|
||||
0.0,
|
||||
0.0
|
||||
],
|
||||
"Transportation cost ($)": [
|
||||
42997.644875000005,
|
||||
42997.644875000005
|
||||
],
|
||||
"Longitude (deg)": 0.0,
|
||||
"Variable operating cost ($)": [
|
||||
-7485.0,
|
||||
-7485.0
|
||||
],
|
||||
"Latitude (deg)": 0.0,
|
||||
"Emissions (tonne)": {}
|
||||
},
|
||||
"L2": {
|
||||
"Distance (km)": 6828.89,
|
||||
"Amount (tonne)": [
|
||||
1869.32,
|
||||
1869.32
|
||||
],
|
||||
"Transportation energy (J)": [
|
||||
0.0,
|
||||
0.0
|
||||
],
|
||||
"Transportation cost ($)": [
|
||||
159567.258185,
|
||||
159567.258185
|
||||
],
|
||||
"Longitude (deg)": 0.5,
|
||||
"Variable operating cost ($)": [
|
||||
-28039.8,
|
||||
-28039.8
|
||||
],
|
||||
"Latitude (deg)": 0.5,
|
||||
"Emissions (tonne)": {}
|
||||
}
|
||||
},
|
||||
"F2": {
|
||||
"L4": {
|
||||
"Distance (km)": 6824.63,
|
||||
"Amount (tonne)": [
|
||||
47.336400000000005,
|
||||
47.336400000000005
|
||||
],
|
||||
"Transportation energy (J)": [
|
||||
0.0,
|
||||
0.0
|
||||
],
|
||||
"Transportation cost ($)": [
|
||||
4038.1676941500004,
|
||||
4038.1676941500004
|
||||
],
|
||||
"Longitude (deg)": 0.2,
|
||||
"Variable operating cost ($)": [
|
||||
-710.046,
|
||||
-710.046
|
||||
],
|
||||
"Latitude (deg)": 0.75,
|
||||
"Emissions (tonne)": {}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"Emissions": {
|
||||
"Transportation (tonne)": {
|
||||
"CH4": [
|
||||
14.21592,
|
||||
9.477279999999999
|
||||
],
|
||||
"CO2": [
|
||||
246.40927999999994,
|
||||
236.93200000000002
|
||||
]
|
||||
},
|
||||
"Plants (tonne)": {
|
||||
"CH4": [
|
||||
14.21592,
|
||||
9.47728
|
||||
],
|
||||
"CO2": [
|
||||
246.40928,
|
||||
236.93200000000002
|
||||
]
|
||||
}
|
||||
},
|
||||
"Products": {
|
||||
"P1": {
|
||||
"C1": {
|
||||
"Marginal cost ($/tonne)": [
|
||||
133.59,
|
||||
134.49
|
||||
]
|
||||
},
|
||||
"C2": {
|
||||
"Marginal cost ($/tonne)": [
|
||||
150.81,
|
||||
151.71
|
||||
]
|
||||
},
|
||||
"C3": {
|
||||
"Marginal cost ($/tonne)": [
|
||||
250.83,
|
||||
251.73
|
||||
]
|
||||
},
|
||||
"C8": {
|
||||
"Marginal cost ($/tonne)": [
|
||||
199.65,
|
||||
200.55
|
||||
]
|
||||
},
|
||||
"C6": {
|
||||
"Marginal cost ($/tonne)": [
|
||||
217.26,
|
||||
218.16
|
||||
]
|
||||
},
|
||||
"C10": {
|
||||
"Marginal cost ($/tonne)": [
|
||||
208.54,
|
||||
209.44
|
||||
]
|
||||
},
|
||||
"C4": {
|
||||
"Marginal cost ($/tonne)": [
|
||||
160.36,
|
||||
161.26
|
||||
]
|
||||
},
|
||||
"C5": {
|
||||
"Marginal cost ($/tonne)": [
|
||||
254.71,
|
||||
255.61
|
||||
]
|
||||
},
|
||||
"C7": {
|
||||
"Marginal cost ($/tonne)": [
|
||||
245.38,
|
||||
246.28
|
||||
]
|
||||
},
|
||||
"C9": {
|
||||
"Marginal cost ($/tonne)": [
|
||||
240.5,
|
||||
241.4
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
11
test/fixtures/solutions/s1.log
vendored
11
test/fixtures/solutions/s1.log
vendored
@@ -1,11 +0,0 @@
|
||||
[ Info: Reading s1.json...
|
||||
[ Info: Building graph...
|
||||
[ Info: 2 time periods
|
||||
[ Info: 6 process nodes
|
||||
[ Info: 8 shipping nodes (plant)
|
||||
[ Info: 10 shipping nodes (collection)
|
||||
[ Info: 38 arcs
|
||||
[ Info: Building optimization model...
|
||||
[ Info: Optimizing MILP...
|
||||
[ Info: Re-optimizing with integer variables fixed...
|
||||
[ Info: Extracting solution...
|
||||
39
test/fixtures/storage.json
vendored
39
test/fixtures/storage.json
vendored
@@ -1,39 +0,0 @@
|
||||
{
|
||||
"parameters": {
|
||||
"time horizon (years)": 3
|
||||
},
|
||||
"products": {
|
||||
"battery": {
|
||||
"initial amounts": {
|
||||
"Chicago": {
|
||||
"latitude (deg)": 0.0,
|
||||
"longitude (deg)": 0.0,
|
||||
"amount (tonne)": [100.0, 0.0, 0.0]
|
||||
}
|
||||
},
|
||||
"transportation cost ($/km/tonne)": [0.01, 0.01, 0.01]
|
||||
}
|
||||
},
|
||||
"plants": {
|
||||
"mega plant": {
|
||||
"input": "battery",
|
||||
"locations": {
|
||||
"Chicago": {
|
||||
"latitude (deg)": 0.0,
|
||||
"longitude (deg)": 0.0,
|
||||
"storage": {
|
||||
"cost ($/tonne)": [2.0, 1.5, 1.0],
|
||||
"limit (tonne)": 50.0
|
||||
},
|
||||
"capacities (tonne)": {
|
||||
"100": {
|
||||
"opening cost ($)": [0.0, 0.0, 0],
|
||||
"fixed operating cost ($)": [0.0, 0.0, 0.0],
|
||||
"variable operating cost ($/tonne)": [10.0, 5.0, 2.0]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user