Rivus model attributes - lnksz/rivus GitHub Wiki
Rivus Model Attributes
Extracted from
create_model()
in source code:
SETS
-
Commodity
commodity
: Commoditiesco_demand
: Commodities that have demand in edgesco_source
: Commodities that may have a source at some vertex/verticesco_transportable
: Commodities that may be transported through edgesco_allowed_max
: Commodities that have a maximum allowed generation (e.g. CO2
-
Prozess
process
: Processes, converting commodities in verticesprocess_input_tuples
: Commodities consumed by processesprocess_output_tuples
: Commodities emitted by processes
-
Hub
hub
: Hub processes, converting commodities in edges
-
Time
time
: Timesteps
-
Strorage
storage
: Connection points between edges, for source and processes
-
Graph
edge
: Undirected street segments, for demand and hubsarc
: Directed street segments, for power flows
-
Costs
cost_type
: supply (kW of commodity in edge at time
VARIABLES
-
Edges and Arcs
Pin
: power flow (kW of commodity into arc at timePot
: power flow (kW of commodity out of arc at timePsi
: 1 if (directed! arc is used at time, 0 elsePmax
: power flow capacity (kW for commodity in edgeXi
: 1 if (undirected! edge is used for commodity at all, 0 else
-
Vertices
Rho
: source stream (kW of commodity from vertex
-
Hubs
Kappa_hub
: capacity (kW of hub process in an edgeEpsilon_hub
: acitvity (kW of hub process in edge at time
-
Processes
Kappa_process
: capacity (kW of process in vertexPhi
: 1 if process in vertex has Kappa_process > 0, 0 elseTau
: power flow (kW through processEpsilon_in
: power flow (kW of commodity into processEpsilon_out
: power flow (kW of commodity out of process
-
Costs
costs
: costs (EUR by cost type
EQUATION DECLARATIONS
-
Edges and Arcs
peak_satisfaction
: peak must be satisfied by Sigma and hub process outputedge_equation
: Sigma is provided by arc flow difference Pin-Pot in either directionarc_flow_by_capacity
: Pin <= Pmaxarc_flow_unidirectionality
: Pin <= Cmax * Psiarc_unidirectionality
: Psi[i,j,t] + Psi[j,i,t] <= 1edge_capacity
: Pmax <= Cmax * Xi
-
Hubs
hub_supply
: Hub inputs <= Sigmahub_output_by_capacity
: Epsilon_hub <= Kappa_hubhub_capacity
: Kappa_hub <= Cmax
-
Vertices
vertex_equation
: Rho >= Process balance + Arc flow balancesource_vertices
: Rho <= Cmax
-
Commodity
commodity_maximum
: Net commodity generation <= allowed-max
-
Processes
process_throughput_by_capacity
: Tau <= Kappa_processprocess_capacity_min
: Kappa_process >= Cmin * Phiprocess_capacity_max
: Kappa_process <= Cmax * Phiprocess_input
: Epsilon_in = Tau * r_inprocess_output
: Epsilon_out = Tau * r_out
-
Costs
def_costs
: Costs = sum of activitiesobj
: Sum costs by cost type
Attribute | Meaning |
---|---|
SETS | |
Commodity | |
commodity |
Commodities |
co_demand |
Commodities that have demand in edges |
co_source |
Commodities that may have a source at some vertex/vertices |
co_transportable |
Commodities that may be transported through edges |
co_allowed_max |
Commodities that have a maximum allowed generation (e.g. CO2 |
Prozess | |
process |
Processes, converting commodities in vertices |
process_input_tuples |
Commodities consumed by processes |
process_output_tuples |
Commodities emitted by processes |
Hub | |
hub |
Hub processes, converting commodities in edges |
Time | |
time |
Timesteps |
Strorage | |
storage |
Connection points between edges, for source and processes |
Graph | |
edge |
Undirected street segments, for demand and hubs |
arc |
Directed street segments, for power flows |
Costs | |
cost_type |
supply (kW of commodity in edge at time |
VARIABLES | |
Edges and Arcs | |
Pin |
power flow (kW of commodity into arc at time |
Pot |
power flow (kW of commodity out of arc at time |
Psi |
1 if (directed! arc is used at time, 0 else |
Pmax |
power flow capacity (kW for commodity in edge |
Xi |
1 if (undirected! edge is used for commodity at all, 0 else |
Vertices | |
Rho |
source stream (kW of commodity from vertex |
Hubs | |
Kappa_hub |
capacity (kW of hub process in an edge |
Epsilon_hub |
acitvity (kW of hub process in edge at time |
Processes | |
Kappa_process |
capacity (kW of process in vertex |
Phi |
1 if process in vertex has Kappa_process > 0, 0 else |
Tau |
power flow (kW through process |
Epsilon_in |
power flow (kW of commodity into process |
Epsilon_out |
power flow (kW of commodity out of process |
Costs | |
costs |
costs (EUR by cost type |
EQUATION DECLARATIONS | |
Edges and Arcs | |
peak_satisfaction |
peak must be satisfied by Sigma and hub process output |
edge_equation |
Sigma is provided by arc flow difference Pin-Pot in either direction |
arc_flow_by_capacity |
Pin <= Pmax |
arc_flow_unidirectionality |
Pin <= Cmax * Psi |
arc_unidirectionality |
Psi[i,j,t] + Psi[j,i,t] <= 1 |
edge_capacity |
Pmax <= Cmax * Xi |
Hubs | |
hub_supply |
Hub inputs <= Sigma |
hub_output_by_capacity |
Epsilon_hub <= Kappa_hub |
hub_capacity |
Kappa_hub <= Cmax |
Vertices | |
vertex_equation |
Rho >= Process balance + Arc flow balance |
source_vertices |
Rho <= Cmax |
Commodity | |
commodity_maximum |
Net commodity generation <= allowed-max |
Processes | |
process_throughput_by_capacity |
Tau <= Kappa_process |
process_capacity_min |
Kappa_process >= Cmin * Phi |
process_capacity_max |
Kappa_process <= Cmax * Phi |
process_input |
Epsilon_in = Tau * r_in |
process_output |
Epsilon_out = Tau * r_out |
Costs | |
def_costs |
Costs = sum of activities |
obj |
Sum costs by cost type |