3b_inputsLoop.gms 1.34 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
$ontext
This file is part of Backbone.

Backbone is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

Backbone is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License
along with Backbone.  If not, see <http://www.gnu.org/licenses/>.
$offtext
17
18
19
20
put log 'ord tSolve: ';
put log ord(tSolve) /;

if (mSettings(mSolve, 'readForecastsInTheLoop') and ord(tSolve) >= tForecastNext(mSolve),
21
  put_utility 'gdxin' / 'input\forecasts\' tSolve.tl:0 '.gdx';
22
  execute_load ts_forecast = forecast;
23
24
  tLatestForecast(t) = no;
  tLatestForecast(t)$(ord(t) = ord(tSolve)) = yes;
25

26
27
  put_utility 'gdxin' / 'input\tertiary\' tSolve.tl:0 '.gdx';
  execute_load ts_tertiary;
28
    ts_reserveDemand('tertiary', 'up', node, f, t)${ mf(mSolve, f)
29
                                                        and not fRealization(f)
30
        } = min(500, ts_tertiary('wind', node, tSolve, 'up', t) * sum(flowUnit('wind', unit), p_gnu('elec', node, unit, 'maxGen')));
31
32
33
);

putclose log;