@@ -238,6 +238,7 @@ Equations
238238 CAPACITY_MAINTENANCE_HIST constraint for capacity maintenance historical installation (built before start of model horizon)
239239 CAPACITY_MAINTENANCE_NEW constraint for capacity maintenance of new capacity built in the current period (vintage == year)
240240 CAPACITY_MAINTENANCE constraint for capacity maintenance over the technical lifetime
241+ CAPACITY_MAINTENANCE2 constraint for capacity maintenance after the technical lifetime (should be zero)
241242 OPERATION_CONSTRAINT constraint on maximum yearly operation (scheduled down-time for maintenance)
242243 MIN_UTILIZATION_CONSTRAINT constraint for minimum yearly operation (aggregated over the course of a year)
243244 RENEWABLES_POTENTIAL_CONSTRAINT constraint on renewable resource potential
@@ -800,6 +801,26 @@ CAPACITY_MAINTENANCE(node,inv_tec,vintage,year)$( map_tec_lifetime(node,inv_tec,
800801 ( SUM(year2$( seq_period(year2,year) ),
801802 CAP(node,inv_tec,vintage,year2) ) ) ;
802803
804+ ***
805+ * .. _equation_capacity_maintenance2:
806+ *
807+ * Equation CAPACITY_MAINTENANCE2
808+ * """"""""""""""""""""""""""""""
809+ * This constraint ensures that the capacity is not preserved after the technical lifetime of a technology.
810+ *
811+ * .. math::
812+ * CAP_{n,t,y^V,y} =
813+ * 0 \\
814+ * \quad & \text{if } y > y^V \text{ and } y^V > 'first\_period' \text{ and } |y| - |y^V| >= technical\_lifetime_{n,t,y^V}
815+ * \quad \forall \ t \in T^{INV}
816+ *
817+ ***
818+ CAPACITY_MAINTENANCE2(node,inv_tec,vintage,year)$( map_tec(node,inv_tec,vintage) AND NOT map_tec_lifetime(node,inv_tec,vintage,year)
819+ AND NOT first_period(year) AND year_order(vintage) < year_order(year))..
820+ CAP(node,inv_tec,vintage,year)
821+ =L= 0 ;
822+
823+
803824***
804825* .. _equation_operation_constraint:
805826*
0 commit comments