-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathKEM_CEM_2.gms
54 lines (41 loc) · 994 Bytes
/
KEM_CEM_2.gms
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
$title Dynamic Programming Investment with Reliability Options
$ontext
$offtext
*$INCLUDE ACCESS_HLC.gms
$INCLUDE Macros.gms
$FuncLibIn stolib stodclib
function cdfnorm /stolib.cdfnormal/;
scalar trading set to 1 to allow regional trade by firms /0/
fixed_ppa /0/
r_options reliability options switch /0/
$INCLUDE SetsAndVariables.gms
$INCLUDE Demand.gms
$include parameters.gms
$include marginal_cost.gms
$include demand_calib.gms
$INCLUDE equations.gms
$include scen_config.gms
;
*v(i)=0;
*z(i) = -1;
m(r,e,l)=no;
$ontext
* Configure capacity market segments
* Enter file to load previous data from
$gdxin energy_only.gdx
$LOAD demand_actual Cap_avail price
$include capacity_market.gms
$offtext
;
$INCLUDE emp.gms
Option Savepoint=1;
*solve CMO using mcp;
if(r_options<>1,
CMO.optfile = 1 ;
SOLVE CMO using emp;
else
* Execute_Loadpoint 'CMO_options_p.gdx';
CMO_options.optfile = 1 ;
SOLVE CMO_options using emp;
);
$include report.gms