finance¶
Public-debt accounting and caps for new-build investment.
Each new-tech investment carries a public-debt obligation equal to
public_debt_ratio[te] times its discounted investment cost. The
module exposes that obligation as an indexed expression
public_debt_newtech[y, z, te] and (optionally) caps the public
debt taken on each year, system-wide and per-zone:
This module is OFF unless the user provides public_debt_ratio;
the optional caps default to +inf (no constraint added).
- class prepshot._model.finance.AddFinanceConstraints(model)[source]¶
Bases:
objectPublic-debt expressions and (optional) cap constraints.
- Parameters
model (object) --
- __init__(model)[source]¶
Initialize the class and add expressions / constraints.
Reads
model.cost_newtech_breakdown(built byAddCostObjective), so this must run AFTERAddCostObjective.- Parameters
model (object) -- Model object depending on the solver.
- Return type
None
- public_debt_max_system_rule(y)[source]¶
System-wide upper bound on public debt taken in year
y.Missing entry or
+infskips the constraint.- Parameters
y (int) -- Year.
- Returns
The cap constraint, or
Noneif uncapped.- Return type
poi.ConstraintIndex or None