1
1
*++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
2
- * Copyright (C) 2000-2023 Energy Technology Systems Analysis Programme (ETSAP)
2
+ * Copyright (C) 2000-2025 Energy Technology Systems Analysis Programme (ETSAP)
3
3
* This file is part of the IEA-ETSAP TIMES model generator, licensed
4
4
* under the GNU General Public License v3.0 (see file NOTICE-GPLv3.txt).
5
5
*=============================================================================*
@@ -24,19 +24,22 @@ $IFI '%STAGES%'==YES PASTSUM(NCAP_YES(R,T,P)) = SUM(SW_TSW(SOW,T,WW),OBJ_SIC(R,T
24
24
* Lump-sum investment costs
25
25
*------------------------------------------------------------------------------
26
26
$SET P1 "'%SYSPREFIX%INSTCAP'"
27
- %1CAP_NEW(%2RVPT(NCAP_YES(R,T,P),TT),%P1%) = VAR_NCAP.L(R,T,P);
28
- %1CAP_NEW(%2NCAP_YES(R,T,P),T,%P1%)$(NOT OBJ_2A(R,T,P)) = COEF_RPTI(R,T,P)*VAR_NCAP.L(R,T,P);
27
+ F = RPT_OPT('NCAP','7')>0;
28
+ COEF_RTP(RTP(R,T,P))$PRC_CAP(R,P) = VAR_NCAP.L(RTP)$NCAP_YES(RTP) +
29
+ SUM(PERIODYR(T,Y_EOH)$NCAP_PASTI(R,Y_EOH,P),NCAP_PASTI(R,Y_EOH,P)*POWER(COEF_RPTI(RTP),1$T(Y_EOH)-1))$F;
30
+ %1CAP_NEW(%2RVPT(R,T,P,TT),%P1%) $= COEF_RTP(R,T,P);
31
+ %1CAP_NEW(%2RTP(R,T,P),T,%P1%)$((NOT OBJ_2A(RTP))$COEF_RTP(RTP)) = COEF_RPTI(RTP)*COEF_RTP(RTP);
29
32
OPTION CLEAR=UNCD1; UNCD1(J)$(ORD(J)<3)=YES;
30
33
RTP_OBJ(JJ(UNCD1(J)),OBJ_ICUR(NCAP_YES(R,T(V),P),CUR))=
31
34
$IF '%ETL%'==YES (VAR_IC.L(R,T,P)*COR_SALVI(R,T,P,CUR))$SEG(R,P) +
32
35
SUM((OBJ_SUMII(R,T,P,LIFE,K_EOH,JOT),INVSPRED(K_EOH,JOT,Y,K)),
33
36
(OBJ_ICOST(R,K,P,CUR)%SIC%$(ORD(J)=2)+(OBJ_ITAX(R,K,P,CUR)-OBJ_ISUB(R,K,P,CUR))$(ORD(J)=1))) *
34
- VAR_NCAP.L (R,T,P) * COR_SALVI(R,T,P,CUR) / OBJ_DIVI(R,T,P) /
37
+ COEF_RTP (R,T,P) * COR_SALVI(R,T,P,CUR) / OBJ_DIVI(R,T,P) /
35
38
(1+G_DRATE(R,T,CUR))**(%DISCSHIFT%$(NOT NCAP_ILED(R,T,P)));
36
39
SYSPLIT(SYSUC)=1-SUM(SYSUCMAP(SYSUC,ITEM),1);
37
40
LOOP(UNCD1(J),%1CAP_NEW(%2R,T,P,TT,SYSUC)$(%1CAP_NEW(%2R,T,P,TT,%P1%)$SUCMAP(J,SYSUC))=SUM(RDCUR(R,CUR),RTP_OBJ(J,R,T,P,CUR)*ABS(SYSPLIT(SYSUC)-COEF_CRF(R,T,P,CUR)))
38
41
IF(NOT MY_F,OPTION CLEAR=COEF_CRF));
39
- OPTION CLEAR=RTP_OBJ;
42
+ OPTION CLEAR=COEF_RTP,CLEAR= RTP_OBJ;
40
43
*-----------------------------------------------------------------------------
41
44
* Objective function by component
42
45
*-----------------------------------------------------------------------------
0 commit comments