mirror of https://github.com/ANL-CEEESA/RELOG.git
parent
b1d49e1313
commit
e4ed05fb98
@ -1,206 +1,189 @@
|
|||||||
{
|
{
|
||||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||||
"$id": "https://anl-ceeesa.github.io/RELOG/input",
|
"$id": "https://anl-ceeesa.github.io/RELOG/input",
|
||||||
"title": "Schema for RELOG Input File",
|
"title": "Schema for RELOG Input File",
|
||||||
"definitions": {
|
"definitions": {
|
||||||
"TimeSeries": {
|
"TimeSeries": {
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"items": {
|
"items": {
|
||||||
"type": "number"
|
"type": "number"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"Parameters": {
|
"Parameters": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
"time horizon (years)": {
|
"time horizon (years)": {
|
||||||
"type": "number"
|
"type": "number"
|
||||||
},
|
|
||||||
"distance metric": {
|
|
||||||
"type": "string"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"required": [
|
|
||||||
"time horizon (years)"
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
"Plant": {
|
"distance metric": {
|
||||||
|
"type": "string"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"required": ["time horizon (years)"]
|
||||||
|
},
|
||||||
|
"Plant": {
|
||||||
|
"type": "object",
|
||||||
|
"additionalProperties": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"input": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"outputs (tonne/tonne)": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"additionalProperties": {
|
"additionalProperties": {
|
||||||
"type": "object",
|
"type": "number"
|
||||||
"properties": {
|
|
||||||
"input": {
|
|
||||||
"type": "string"
|
|
||||||
},
|
|
||||||
"outputs (tonne/tonne)": {
|
|
||||||
"type": "object",
|
|
||||||
"additionalProperties": {
|
|
||||||
"type": "number"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"energy (GJ/tonne)": {
|
|
||||||
"$ref": "#/definitions/TimeSeries"
|
|
||||||
},
|
|
||||||
"emissions (tonne/tonne)": {
|
|
||||||
"type": "object",
|
|
||||||
"additionalProperties": {
|
|
||||||
"$ref": "#/definitions/TimeSeries"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"locations": {
|
|
||||||
"$ref": "#/definitions/PlantLocation"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"required": [
|
|
||||||
"input",
|
|
||||||
"locations"
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"PlantLocation": {
|
"energy (GJ/tonne)": {
|
||||||
|
"$ref": "#/definitions/TimeSeries"
|
||||||
|
},
|
||||||
|
"emissions (tonne/tonne)": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"additionalProperties": {
|
"additionalProperties": {
|
||||||
"type": "object",
|
"$ref": "#/definitions/TimeSeries"
|
||||||
"properties": {
|
|
||||||
"location": {
|
|
||||||
"type": "string"
|
|
||||||
},
|
|
||||||
"latitude (deg)": {
|
|
||||||
"type": "number"
|
|
||||||
},
|
|
||||||
"longitude (deg)": {
|
|
||||||
"type": "number"
|
|
||||||
},
|
|
||||||
"disposal": {
|
|
||||||
"type": "object",
|
|
||||||
"additionalProperties": {
|
|
||||||
"type": "object",
|
|
||||||
"properties": {
|
|
||||||
"cost ($/tonne)": {
|
|
||||||
"$ref": "#/definitions/TimeSeries"
|
|
||||||
},
|
|
||||||
"limit (tonne)": {
|
|
||||||
"$ref": "#/definitions/TimeSeries"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"required": [
|
|
||||||
"cost ($/tonne)"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"storage": {
|
|
||||||
"type": "object",
|
|
||||||
"properties": {
|
|
||||||
"cost ($/tonne)": {
|
|
||||||
"$ref": "#/definitions/TimeSeries"
|
|
||||||
},
|
|
||||||
"limit (tonne)": {
|
|
||||||
"type": "number"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"required": [
|
|
||||||
"cost ($/tonne)",
|
|
||||||
"limit (tonne)"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"capacities (tonne)": {
|
|
||||||
"type": "object",
|
|
||||||
"additionalProperties": {
|
|
||||||
"type": "object",
|
|
||||||
"properties": {
|
|
||||||
"variable operating cost ($/tonne)": {
|
|
||||||
"$ref": "#/definitions/TimeSeries"
|
|
||||||
},
|
|
||||||
"fixed operating cost ($)": {
|
|
||||||
"$ref": "#/definitions/TimeSeries"
|
|
||||||
},
|
|
||||||
"opening cost ($)": {
|
|
||||||
"$ref": "#/definitions/TimeSeries"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"required": [
|
|
||||||
"variable operating cost ($/tonne)",
|
|
||||||
"fixed operating cost ($)",
|
|
||||||
"opening cost ($)"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"required": [
|
|
||||||
"capacities (tonne)"
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"locations": {
|
||||||
|
"$ref": "#/definitions/PlantLocation"
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"InitialAmount": {
|
"required": ["input", "locations"]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"PlantLocation": {
|
||||||
|
"type": "object",
|
||||||
|
"additionalProperties": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"location": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"latitude (deg)": {
|
||||||
|
"type": "number"
|
||||||
|
},
|
||||||
|
"longitude (deg)": {
|
||||||
|
"type": "number"
|
||||||
|
},
|
||||||
|
"disposal": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"additionalProperties": {
|
"additionalProperties": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
"location": {
|
"cost ($/tonne)": {
|
||||||
"type": "string"
|
"$ref": "#/definitions/TimeSeries"
|
||||||
},
|
|
||||||
"latitude (deg)": {
|
|
||||||
"type": "number"
|
|
||||||
},
|
|
||||||
"longitude (deg)": {
|
|
||||||
"type": "number"
|
|
||||||
},
|
|
||||||
"amount (tonne)": {
|
|
||||||
"$ref": "#/definitions/TimeSeries"
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"required": [
|
"limit (tonne)": {
|
||||||
"amount (tonne)"
|
"$ref": "#/definitions/TimeSeries"
|
||||||
]
|
}
|
||||||
|
},
|
||||||
|
"required": ["cost ($/tonne)"]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"Product": {
|
"storage": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"cost ($/tonne)": {
|
||||||
|
"$ref": "#/definitions/TimeSeries"
|
||||||
|
},
|
||||||
|
"limit (tonne)": {
|
||||||
|
"type": "number"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"required": ["cost ($/tonne)", "limit (tonne)"]
|
||||||
|
},
|
||||||
|
"capacities (tonne)": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"additionalProperties": {
|
"additionalProperties": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
"transportation cost ($/km/tonne)": {
|
"variable operating cost ($/tonne)": {
|
||||||
"$ref": "#/definitions/TimeSeries"
|
"$ref": "#/definitions/TimeSeries"
|
||||||
},
|
},
|
||||||
"transportation energy (J/km/tonne)": {
|
"fixed operating cost ($)": {
|
||||||
"$ref": "#/definitions/TimeSeries"
|
"$ref": "#/definitions/TimeSeries"
|
||||||
},
|
|
||||||
"transportation emissions (tonne/km/tonne)": {
|
|
||||||
"type": "object",
|
|
||||||
"additionalProperties": {
|
|
||||||
"$ref": "#/definitions/TimeSeries"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"initial amounts": {
|
|
||||||
"$ref": "#/definitions/InitialAmount"
|
|
||||||
},
|
|
||||||
"disposal limit (tonne)": {
|
|
||||||
"$ref": "#/definitions/TimeSeries"
|
|
||||||
},
|
|
||||||
"disposal cost ($/tonne)": {
|
|
||||||
"$ref": "#/definitions/TimeSeries"
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"required": [
|
"opening cost ($)": {
|
||||||
"transportation cost ($/km/tonne)"
|
"$ref": "#/definitions/TimeSeries"
|
||||||
]
|
}
|
||||||
|
},
|
||||||
|
"required": [
|
||||||
|
"variable operating cost ($/tonne)",
|
||||||
|
"fixed operating cost ($)",
|
||||||
|
"opening cost ($)"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"required": ["capacities (tonne)"]
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"type": "object",
|
"InitialAmount": {
|
||||||
"properties": {
|
"type": "object",
|
||||||
"parameters": {
|
"additionalProperties": {
|
||||||
"$ref": "#/definitions/Parameters"
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"location": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"latitude (deg)": {
|
||||||
|
"type": "number"
|
||||||
|
},
|
||||||
|
"longitude (deg)": {
|
||||||
|
"type": "number"
|
||||||
|
},
|
||||||
|
"amount (tonne)": {
|
||||||
|
"$ref": "#/definitions/TimeSeries"
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"plants": {
|
"required": ["amount (tonne)"]
|
||||||
"$ref": "#/definitions/Plant"
|
}
|
||||||
|
},
|
||||||
|
"Product": {
|
||||||
|
"type": "object",
|
||||||
|
"additionalProperties": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"transportation cost ($/km/tonne)": {
|
||||||
|
"$ref": "#/definitions/TimeSeries"
|
||||||
|
},
|
||||||
|
"transportation energy (J/km/tonne)": {
|
||||||
|
"$ref": "#/definitions/TimeSeries"
|
||||||
|
},
|
||||||
|
"transportation emissions (tonne/km/tonne)": {
|
||||||
|
"type": "object",
|
||||||
|
"additionalProperties": {
|
||||||
|
"$ref": "#/definitions/TimeSeries"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"initial amounts": {
|
||||||
|
"$ref": "#/definitions/InitialAmount"
|
||||||
|
},
|
||||||
|
"disposal limit (tonne)": {
|
||||||
|
"$ref": "#/definitions/TimeSeries"
|
||||||
|
},
|
||||||
|
"disposal cost ($/tonne)": {
|
||||||
|
"$ref": "#/definitions/TimeSeries"
|
||||||
|
},
|
||||||
|
"acquisition cost ($/tonne)": {
|
||||||
|
"$ref": "#/definitions/TimeSeries"
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"products": {
|
"required": ["transportation cost ($/km/tonne)"]
|
||||||
"$ref": "#/definitions/Product"
|
}
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"parameters": {
|
||||||
|
"$ref": "#/definitions/Parameters"
|
||||||
|
},
|
||||||
|
"plants": {
|
||||||
|
"$ref": "#/definitions/Plant"
|
||||||
},
|
},
|
||||||
"required": [
|
"products": {
|
||||||
"parameters",
|
"$ref": "#/definitions/Product"
|
||||||
"plants",
|
}
|
||||||
"products"
|
},
|
||||||
]
|
"required": ["parameters", "plants", "products"]
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in new issue