cronian.base_model
Create the base model to which all generators, prosumers, constraints, and the objective function will be added.
Functions
|
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 fromprice_timeseriesbase_load(Param[time]): Timeseries ofbase_load, or zeroes ifbase_loadisNone