pommes.model.transport

Module related to inter-zone resource transport.

Functions

add_transport(→ linopy.Model)

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_capacity

      Represents the operational power capacity for transport technologies on each link and operational year.

    • operation_transport_power

      Represents the power flow for transport technologies by link, hour, and operational year.

    • operation_transport_net_generation

      Represents the net energy transferred between areas, accounting for inflows and outflows.

    • operation_transport_costs

      Represents operational costs associated with transport technologies for each area and operational year.

  • Planning
    • planning_transport_power_capacity

      Represents the planned power capacity investments in transport infrastructure.

    • planning_transport_costs

      Represents planning costs associated with transport investments.

Constraints

  • Operation
    • operation_transport_power_max_constraint

      Limits operational power flow to available capacity.

    • operation_transport_net_generation_def

      Defines net energy flow for transport between different areas.

  • Planning
    • planning_transport_power_capacity_min_constraint

      Enforces a lower limit on planned transport power investments.

    • planning_transport_power_capacity_max_constraint

      Enforces an upper limit on planned transport power investments.

  • Costs
    • operation_transport_costs_def

      Defines operational transport costs based on fixed costs and power capacity.

    • planning_transport_costs_def

      Defines 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.