-
Notifications
You must be signed in to change notification settings - Fork 43
/
Copy pathequ_ext.dsc
32 lines (26 loc) · 1.55 KB
/
equ_ext.dsc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
*++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
* Copyright (C) 2000-2024 Energy Technology Systems Analysis Programme (ETSAP)
* This file is part of the IEA-ETSAP TIMES model generator, licensed
* under the GNU General Public License v3.0 (see file NOTICE-GPLv3.txt).
*=============================================================================*
* EQ_EXT.dsc declarations & call for actual DSC equations
* %1 - mod or v# for the source code to be used
*=============================================================================*
* Questions/Comments:
*-----------------------------------------------------------------------------
$ IFI NOT %DSC%==YES $EXIT
*-----------------------------------------------------------------------------
* Discrete investments
EQUATIONS
%EQ%_DSCNCAP(R,ALLYEAR,P%SWTD%) 'Discrete capacity extension (=E=)'
%EQ%_DSCONE(R,ALLYEAR,P%SWTD%) 'Discrete capacity extension unity condition (=E=)'
;
$ IF '%STAGES%'==YES $%WITSPINE% %SW_STVARS%
*-----------------------------------------------------------------------------
%EQ%_DSCNCAP(RTP(%R_T%,P)%SWT%)$PRC_DSCNCAP(R,P)..
%VAR%_NCAP(R,T,P%SOW%) =E=
SUM(UNIT$NCAP_DISC(R,T,P,UNIT), %VAR%_DNCAP(R,T,P%SOW%,UNIT)*NCAP_DISC(R,T,P,UNIT)) +
%VAR%_SNCAP(R,T,P%SOW%)$NCAP_SEMI(R,T,P);
%EQ%_DSCONE(RTP(%R_T%,P)%SWT%)$(NCAP_DISC(R,T,P,'0')$PRC_DSCNCAP(R,P))..
SUM(UNIT$NCAP_DISC(R,T,P,UNIT), %VAR%_DNCAP(R,T,P%SOW%,UNIT)) =E= 1;
*-----------------------------------------------------------------------------