cronian.base_model

Create the base model to which all generators, prosumers, constraints, and the objective function will be added.

Functions

create_optimization_model(→ pyomo.environ.AbstractModel)

Create optimization model with common parameters.

Module Contents

cronian.base_model.create_optimization_model(base_load: pandas.Series | None, price_timeseries: pandas.DataFrame, number_of_timesteps: int | None) pyomo.environ.AbstractModel

Create optimization model with common parameters.

Parameters:
  • base_load – pd.Series of Base load from passive consumers.

  • price_timeseries – Dataframe containing the prices of energy carriers.

  • number_of_timesteps – Number of timesteps to run the optimization for.

Returns:

Abstract Pyomo model with general parameters.

Creates model attributes:

  • time (Set): Initialized with timesteps

  • <carrier>_price (Param[time]): Price timeseries per carrier from price_timeseries

  • base_load (Param[time]): Timeseries of base_load, or zeroes if base_load is None