topotherm.single_timestep
This module contains the optimization models for the single-timestep district heating network design.
Functions
annuity: Calculate the annuity factor.model: Create the optimization model for the single time-step operation.
Functions
|
Calculate the annuity factor. |
|
Create the optimization model for the thermo-hydraulic coupled with |
Module Contents
- topotherm.single_timestep.model(matrices, sets, regression_inst, regression_losses, economics, optimization_mode)[source]
Create the optimization model for the thermo-hydraulic coupled with single time step operation.
- Parameters:
matrices (dict) – Dictionary with the matrices of the district heating network with keys
a_i,a_p,a_c,l_i,position,q_c.sets (dict) – Dictionary with the sets for the optimization, obtained from
matrices.regression_inst (dict) – Dictionary with the regression coefficients for the thermal capacity.
regression_losses (dict) – Dictionary with the regression coefficients for the heat losses.
economics (topotherm.settings.Economics) – Object with the economic parameters.
optimization_mode (str) – Optimization mode, either
'economic'for economic or'forced'for forced operation.
- Returns:
pyomo model.
- Return type:
pyomo.environ.ConcreteModel