-
Notifications
You must be signed in to change notification settings - Fork 43
/
Copy pathmod_vars.tm
57 lines (47 loc) · 2.54 KB
/
mod_vars.tm
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
*++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
* Copyright (C) 2000-2023 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).
*=============================================================================*
* MOD_VARS.MOD lists the individual variables of all instances of the MODEL
*=============================================================================*
* Questions/Comments:
* - no need to add SOW-index to variables under MACRO
*-----------------------------------------------------------------------------
* Include declarations for all variables in standard TIMES
$ INCLUDE mod_vars.mod
SET OBVANN(OBV) / OBJINV, OBJFIX, OBJVAR /;
* Activate demand variables
RD_NLP(DEM) = 1;
POSITIVE VARIABLES
*-----------------------------------------------------------------------------*
* MACRO Interface Variables
* - Annual Cost Components: investment, fixed, variable costs
* - Annual Demands
*-----------------------------------------------------------------------------*
VAR_ANNCST(OBV,R,ALLYEAR,CUR) Annualized costs
VAR_DEM(R,MILESTONYR,C) Annual useful demand
*-----------------------------------------------------------------------------*
* MACRO variables
*-----------------------------------------------------------------------------*
VAR_EC(R,ALLYEAR) 'Annual energy costs in MACRO'
VAR_C(R,T) 'Annual consumption in MACRO'
VAR_Y(R,T) 'Annual production in MACRO'
VAR_K(R,T) 'Total capital'
VAR_INV(R,T) 'Annual investments in MACRO'
VAR_D(R,T,CG) 'Annual useful demand in MACRO'
VAR_SP(R,T,CG) 'Artificial variable for scaling shadow price'
VAR_OBJCOST(R,ALLYEAR) 'Annual energy costs in TIMES'
VAR_XCAP(R,YEAR,ITEM) 'Market penetration bounds - total new capacity'
VAR_XCAPP(R,YEAR,P,J) 'Market penetration bounds - additional capacity'
VAR_MELA(R,T,CG,J,BD) 'Step variables for elasticities'
;
VARIABLES
*-----------------------------------------------------------------------------*
* MACRO variables
*-----------------------------------------------------------------------------*
VAR_UTIL Total utility
VAR_NTX(R,T) Trade in numeraire
;
VAR_ANNCST.LO(OBV(UCN),R,T,CUR)$(RDCUR(R,CUR)$UC_RHS(UCN,'N')) = INF;
VAR_ANNCST.LO(OBV(UCN),R,T,CUR)$(RDCUR(R,CUR)$UC_RHSR(R,UCN,'N')) = INF;