Skip to content

Commit 2eecda9

Browse files
committed
Add capacity_maintenance2 equation
1 parent 4b4bf5b commit 2eecda9

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

message_ix/model/MESSAGE/model_core.gms

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,7 @@ Equations
243243
CAPACITY_MAINTENANCE_HIST constraint for capacity maintenance historical installation (built before start of model horizon)
244244
CAPACITY_MAINTENANCE_NEW constraint for capacity maintenance of new capacity built in the current period (vintage == year)
245245
CAPACITY_MAINTENANCE constraint for capacity maintenance over the technical lifetime
246+
CAPACITY_MAINTENANCE2 constraint for capacity maintenance after the technical lifetime (should be zero)
246247
OPERATION_CONSTRAINT constraint on maximum yearly operation (scheduled down-time for maintenance)
247248
MIN_UTILIZATION_CONSTRAINT constraint for minimum yearly operation (aggregated over the course of a year)
248249
RENEWABLES_POTENTIAL_CONSTRAINT constraint on renewable resource potential
@@ -805,6 +806,26 @@ CAPACITY_MAINTENANCE(node,inv_tec,vintage,year)$( map_tec_lifetime(node,inv_tec,
805806
( SUM(year2$( seq_period(year2,year) ),
806807
CAP(node,inv_tec,vintage,year2) ) ) ;
807808

809+
***
810+
* .. _equation_capacity_maintenance2:
811+
*
812+
* Equation CAPACITY_MAINTENANCE2
813+
* """"""""""""""""""""""""""""""
814+
* This constraint ensures that the capacity is not preserved after the technical lifetime of a technology.
815+
*
816+
* .. math::
817+
* CAP_{n,t,y^V,y} =
818+
* 0 \\
819+
* \quad & \text{if } y > y^V \text{ and } y^V > 'first\_period' \text{ and } |y| - |y^V| >= technical\_lifetime_{n,t,y^V}
820+
* \quad \forall \ t \in T^{INV}
821+
*
822+
***
823+
CAPACITY_MAINTENANCE2(node,inv_tec,vintage,year)$( map_tec(node,inv_tec,vintage) AND NOT map_tec_lifetime(node,inv_tec,vintage,year)
824+
AND NOT first_period(year) AND year_order(vintage) < year_order(year))..
825+
CAP(node,inv_tec,vintage,year)
826+
=L= 0 ;
827+
828+
808829
***
809830
* .. _equation_operation_constraint:
810831
*

0 commit comments

Comments
 (0)