pommes.model.transport
Module related to inter-zone resource transport.
Functions
|
Add transport-related components to the Linopy model. |
Module Contents
- pommes.model.transport.add_transport(model: linopy.Model, model_parameters: xarray.Dataset, annualised_totex_def: linopy.Constraint, operation_adequacy_constraint: linopy.Constraint) linopy.Model
Add transport-related components to the Linopy model.
Including variables, constraints, and costs related to energy transport between areas.
- Parameters:
model (linopy.Model) – The Linopy model to which transport-related elements will be added.
model_parameters (xarray.Dataset) – Dataset containing energy system parameters, including transport capacity limits, network topology, and costs.
annualised_totex_def (linopy.Constraint) – Constraint defining annualised total expenditures (totex), which will be updated with transport-specific costs.
operation_adequacy_constraint (linopy.Constraint) – Constraint ensuring operational adequacy, enforcing supply-demand balance, which will be updated with transport-related contributions.
- Returns:
The updated Linopy model with added transport-related variables, costs, and constraints.
- Return type:
linopy.Model
Note
This function introduces the following elements into the model:
Variables
- Operation
operation_transport_power_capacityRepresents the operational power capacity for transport technologies on each link and operational year.
operation_transport_powerRepresents the power flow for transport technologies by link, hour, and operational year.
operation_transport_net_generationRepresents the net energy transferred between areas, accounting for inflows and outflows.
operation_transport_costsRepresents operational costs associated with transport technologies for each area and operational year.
- Planning
planning_transport_power_capacityRepresents the planned power capacity investments in transport infrastructure.
planning_transport_costsRepresents planning costs associated with transport investments.
Constraints
- Operation
operation_transport_power_max_constraintLimits operational power flow to available capacity.
operation_transport_net_generation_defDefines net energy flow for transport between different areas.
- Planning
planning_transport_power_capacity_min_constraintEnforces a lower limit on planned transport power investments.
planning_transport_power_capacity_max_constraintEnforces an upper limit on planned transport power investments.
- Costs
operation_transport_costs_defDefines operational transport costs based on fixed costs and power capacity.
planning_transport_costs_defDefines planning costs for transport investments, considering annuities.
These additions ensure that transport infrastructure operates within technical and economic limits, allowing the model to simulate energy transport flows realistically.