flexdesign.build.build_design_model¶
- flexdesign.build.build_design_model(spec: DesignSpec) ConcreteModel¶
Merge every horizon into one model with shared sizes and an annualized objective.
- Parameters:
spec – The design study.
- Returns:
A model with
horizon[year, month],capacity[name],annual_operating_cost[year],annualized_operating_cost,annualized_capital_costand the objectiveannualized_cost.- Raises:
FlexConfigError – If a capacity path is not a scalar Var, its bounds exceed the Var’s own, or horizons disagree on the effective rate.