Skip to content

Commit d6b9652

Browse files
authored
Update to v4.8.6
1 parent 25dc1ea commit d6b9652

File tree

6 files changed

+33
-15
lines changed

6 files changed

+33
-15
lines changed

Version.log

+16-1
Original file line numberDiff line numberDiff line change
@@ -3023,4 +3023,19 @@ prep_ext.dsc : (2)
30233023
equ_ext.dsc : (2)
30243024
mod_ext.dsc : (2)
30253025
ppm_ext.dsc : (2)
3026-
_times.g00 : (1)
3026+
_times.g00 : (1)
3027+
3028+
-----------------------------------------------------------------------------------------
3029+
TIMES Version 4.8.6
3030+
-----------------------------------------------------------------------------------------
3031+
Date: 25-Jan-2025 [AL]: Maintenance release
3032+
1) Fixed bug related to zero SHAPE with NCAP_AFX
3033+
2) Fixed bug related to retiring capacities with zero CAP_BND
3034+
3) Added option for including PASTI within horizon in Cap_New reporting
3035+
3036+
Modified files: (reason)
3037+
initsys.mod : Increased version number to 4.8.6
3038+
ppmain.mod : (2)
3039+
coef_cpt.mod : (1)
3040+
pp_shapr.mod : (1)
3041+
rpt_obj.rpt : (3)

coef_cpt.mod

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
*++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
2-
* Copyright (C) 2000-2023 Energy Technology Systems Analysis Programme (ETSAP)
2+
* Copyright (C) 2000-2025 Energy Technology Systems Analysis Programme (ETSAP)
33
* This file is part of the IEA-ETSAP TIMES model generator, licensed
44
* under the GNU General Public License v3.0 (see file NOTICE-GPLv3.txt).
55
*=============================================================================*
@@ -45,7 +45,7 @@ $IF '%VALIDATE%'==YES COEF_CPT(RTP_CPTYR(R,T,T,P)) = 1;
4545
TRACKP(RP)$RP_UPL(RP,'FX') = NO;
4646
TRACKP(PRC_CAP(PRC_VINT)) = YES;
4747
NCAP_AFBX(RTP(R,V,P),BD)$(RP_AFB(R,P,BD)>0) $= NCAP_AFX(RTP);
48-
$ BATINCLUDE pp_shapr.%1 NCAP_AF (R,V,P,S,BD) "TRACKP(R,P)*PRC_TS(R,P,S)" COEF_AF(RTP_CPTYR(R,V,T,P),S,BD) NCAP_AFM(R,V,P) B
48+
$ BATINCLUDE pp_shapr.%1 NCAP_AF (R,V,P,S,BD) "TRACKP(R,P)*RP_AFB(R,P,BD)*PRC_TS(R,P,S)" COEF_AF(RTP_CPTYR(R,V,T,P),S,BD) NCAP_AFM(R,V,P) B
4949

5050
TRACKP(PRC_CAP(R,P)) = (NOT TRACKP(R,P));
5151
COEF_AF(RTP_CPTYR(R,V,T,P),S,BD)$(PRC_TS(R,P,S)$TRACKP(R,P)) $= NCAP_AF(R,T,P,S,BD);

initsys.mod

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
$TITLE TIMES -- VERSION 4.8.5
1+
$TITLE TIMES -- VERSION 4.8.6
22
*==========================================================================================*
33
* INITSYS.MOD has all the fixed system declarations for ETSAP TIMES *
44
*==========================================================================================*
55
$ onlisting ontext
66
*===========================================================================================
7-
* Copyright (C) 2000-2024 IEA Energy Technology Systems Analysis Programme (IEA-ETSAP).
7+
* Copyright (C) 2000-2025 IEA Energy Technology Systems Analysis Programme (IEA-ETSAP).
88
* This software (ETSAP TIMES) is open source: you can redistribute it and/or modify it
99
* under the terms of the GNU General Public License v3.0 (see file NOTICE-GPLv3.txt).
1010
* For further information, visit: <https://www.gnu.org/licenses/gpl-3.0.html>.

pp_shapr.mod

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
*++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
2-
* Copyright (C) 2000-2023 Energy Technology Systems Analysis Programme (ETSAP)
2+
* Copyright (C) 2000-2025 Energy Technology Systems Analysis Programme (ETSAP)
33
* This file is part of the IEA-ETSAP TIMES model generator, licensed
44
* under the GNU General Public License v3.0 (see file NOTICE-GPLv3.txt).
55
*=============================================================================*
@@ -34,7 +34,7 @@ $ IF %3=='' $SETLOCAL PASS YES
3434
LOOP(SAMEAS(AGE,'1'),
3535
* Calculate average SHAPE for plants still operating in each period:
3636
%4$((%PASS%)$RTP_ISHPR(R,V,P)) = %1%2 *
37-
SUM(RTP_SHAPI(R,V,P,BD,J,JJ,LL,YEAR), MULTI(JJ,T) *
37+
SUM(RTP_SHAPI(R,V,P,BD,J,JJ,LL,YEAR), EPS+MULTI(JJ,T) *
3838
SUM(PERIODYR(T,EOHYEARS)$(YEARVAL(EOHYEARS) LE MAX(B(T),YEARVAL(YEAR))),
3939
SHAPE(J,AGE+(MIN(YEARVAL(EOHYEARS),YEARVAL(YEAR))-YEARVAL(LL)))) /
4040
(MAX(1,MIN(E(T),YEARVAL(YEAR))-MAX(B(T),YEARVAL(LL))+1))));

ppmain.mod

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
*++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
2-
* Copyright (C) 2000-2024 Energy Technology Systems Analysis Programme (ETSAP)
2+
* Copyright (C) 2000-2025 Energy Technology Systems Analysis Programme (ETSAP)
33
* This file is part of the IEA-ETSAP TIMES model generator, licensed
44
* under the GNU General Public License v3.0 (see file NOTICE-GPLv3.txt).
55
*=============================================================================*
@@ -533,7 +533,7 @@ $ BATINCLUDE pp_qaput.mod PUTOUT PUTGRP IFQ 'Inconsistent CAP_BND(UP/FX) defi
533533
RVP(RTP)$((CAP_BND(RTP,'UP')=0)$CAP_BND(RTP,'UP')) = YES;
534534
LOOP(T, NCAP_BND(R,TT,P,'UP')$(RTP_CPTYR(R,TT,T,P)$RVP(R,T,P)) = EPS);
535535
RVP(RTP_VARP)=NO; CAP_BND(RVP,BD) = 0;
536-
CAP_BND(RTP,BD)$MAPVAL(CAP_BND(RTP,BD)) = 0;
536+
CAP_BND(RTP,BDLOX)$MAPVAL(CAP_BND(RTP,BDLOX)) = 0;
537537
* Check whether both UP and LO bounds (then it pays to have VAR_CAP)
538538
RTP_VARP(RTP(R,T,P))$(CAP_BND(RTP,'UP')*CAP_BND(RTP,'LO')) = YES;
539539
PUTGRP=0;
@@ -601,7 +601,7 @@ $IF DEFINED PRC_SIMV LOOP(T,NO_RVP(R,TT-1,P)$(RTP_CPTYR(R,TT,T,P)$PRC_SIMV(R,P))
601601
*-----------------------------------------------------------------------------
602602
* establishment PRC_CAPACT/ACTFLO from PRC_CAPUNT/ACTUNT/COM_UNIT & determine INOUT(r,p)
603603
*-----------------------------------------------------------------------------
604-
PRC_CAPACT(RP(R,P))$(NOT PRC_CAPACT(R,P)) = 1;
604+
PRC_CAPACT(RP)$(NOT PRC_CAPACT(RP)) = 1;
605605
* Copy PRC_ACTFLO from PG to individual commodities in PG, allowing reserved word %PGPRIM%
606606
PRC_ACTFLO(RTP(R,V,P),C)$((NOT PRC_ACTFLO(RTP,C))$RPC_PG(R,P,C)) $= SUM(RP_PG(R,P,CG),PRC_ACTFLO(R,V,P,CG));
607607
PRC_ACTFLO(RTP(R,V,P),C)$((NOT PRC_ACTFLO(RTP,C))$RPC_PG(R,P,C)) $= PRC_ACTFLO(RTP,%PGPRIM%);

rpt_obj.rpt

+8-5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
*++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
2-
* Copyright (C) 2000-2023 Energy Technology Systems Analysis Programme (ETSAP)
2+
* Copyright (C) 2000-2025 Energy Technology Systems Analysis Programme (ETSAP)
33
* This file is part of the IEA-ETSAP TIMES model generator, licensed
44
* under the GNU General Public License v3.0 (see file NOTICE-GPLv3.txt).
55
*=============================================================================*
@@ -24,19 +24,22 @@ $IFI '%STAGES%'==YES PASTSUM(NCAP_YES(R,T,P)) = SUM(SW_TSW(SOW,T,WW),OBJ_SIC(R,T
2424
* Lump-sum investment costs
2525
*------------------------------------------------------------------------------
2626
$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);
2932
OPTION CLEAR=UNCD1; UNCD1(J)$(ORD(J)<3)=YES;
3033
RTP_OBJ(JJ(UNCD1(J)),OBJ_ICUR(NCAP_YES(R,T(V),P),CUR))=
3134
$IF '%ETL%'==YES (VAR_IC.L(R,T,P)*COR_SALVI(R,T,P,CUR))$SEG(R,P) +
3235
SUM((OBJ_SUMII(R,T,P,LIFE,K_EOH,JOT),INVSPRED(K_EOH,JOT,Y,K)),
3336
(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) /
3538
(1+G_DRATE(R,T,CUR))**(%DISCSHIFT%$(NOT NCAP_ILED(R,T,P)));
3639
SYSPLIT(SYSUC)=1-SUM(SYSUCMAP(SYSUC,ITEM),1);
3740
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)))
3841
IF(NOT MY_F,OPTION CLEAR=COEF_CRF));
39-
OPTION CLEAR=RTP_OBJ;
42+
OPTION CLEAR=COEF_RTP,CLEAR=RTP_OBJ;
4043
*-----------------------------------------------------------------------------
4144
* Objective function by component
4245
*-----------------------------------------------------------------------------

0 commit comments

Comments
 (0)