Commit 4e819871 authored by Niina Helistö's avatar Niina Helistö
Browse files

Added two new templates and updated the set and parameter naming in the old templates.

parent 9b186cf4
......@@ -21,7 +21,7 @@ Created by:
Juha Kiviluoma <juha.kiviluoma@vtt.fi>
Erkka Rinne <erkka.rinne@vtt.fi>
Topi Rasku <topi.rasku@vtt.fi>
Niina Helisto <niina.helisto@vtt.fi>
Niina Helisto <niina.helisto@vtt.fi>
- Based on Stochastic Model Predictive Control method [1].
- Enables multiple different models (m) to be implemented by changing
......
......@@ -40,6 +40,8 @@ Most of these files are under *\inc* in the Backbone folder, except for the mode
* timeAndSamples.inc - Contains definitions for the time, forecast and sample index ranges.
* modelsInit.gms - Contains model parameters for the solve (or a link to a template under *\defModels* to be used). Useful for any additional GAMS scripting.
Backbone folder contains two template files *timeAndSamples_temp.inc* and *modelsInit_temp.gms* to provide examples of the input format. These files can be copied into *\input* and renamed to *timeAndSamples.inc* and *modelsInit.gms*.
## When Simply Using Backbone
When starting to use Backbone, there is no immediate need to understand every single file that makes up the model. The files below list the most important files to understand, if one’s aim is simply to use Backbone for modelling/simulation purposes, without the need to modify the way the model works.
......
......@@ -42,10 +42,10 @@ if (mType('building'),
mSettings('building', 'samples') = 1;
// Define Initial and Central samples
msInitial('building', s) = no;
msInitial('building', 's000') = yes;
msCentral('building', s) = no;
msCentral('building', 's000') = yes;
ms_initial('building', s) = no;
ms_initial('building', 's000') = yes;
ms_central('building', s) = no;
ms_central('building', 's000') = yes;
// Define time span of samples
msStart('building', 's000') = mSettings('building', 't_start');
......@@ -78,14 +78,14 @@ if (mType('building'),
mSettings('building', 'readForecastsInTheLoop') = 0;
// Define Realized and Central forecasts
* mfRealization('building', f) = no;
mfRealization('building', 'f00') = yes;
* mfCentral('building', f) = no;
mfCentral('building', 'f00') = yes;
* mf_realization('building', f) = no;
mf_realization('building', 'f00') = yes;
* mf_central('building', f) = no;
mf_central('building', 'f00') = yes;
// Define forecast probabilities (weights)
* p_mfProbability('building', f) = 0;
p_mfProbability(mfRealization('building', f)) = 1;
p_mfProbability(mf_realization('building', f)) = 1;
// Define active model features
* active('building', 'storageValue') = yes;
......@@ -107,4 +107,4 @@ if (mType('building'),
// Define unit aggregation and efficiency levels starting indeces
mSettingsEff('building', 'level1') = 1;
); // END if(mType)
\ No newline at end of file
); // END if(mType)
......@@ -41,28 +41,28 @@ if (mType('invest'),
mSettingsEff('invest', 'level4') = 4392;
// Define active model features
active('storageValue') = yes;
active('invest', 'storageValue') = yes;
// Define model stochastic parameters
mSettings('invest', 'samples') = 1;
mSettings('invest', 'forecasts') = 0;
mSettings('invest', 'readForecastsInTheLoop') = 0;
mf('invest', f)$[ord(f)-1 <= mSettings('invest', 'forecasts')] = yes;
fRealization(f) = no;
fRealization('f00') = yes;
fCentral(f) = no;
fCentral('f00') = yes;
sInitial(s) = no;
sInitial('s000') = yes;
sCentral(s) = no;
sCentral('s000') = yes;
mf_realization('invest', f) = no;
mf_realization('invest', 'f00') = yes;
mf_central('invest', f) = no;
mf_central('invest', 'f00') = yes;
ms_initial('invest', s) = no;
ms_initial('invest', 's000') = yes;
ms_central('invest', s) = no;
ms_central('invest', 's000') = yes;
p_stepLength('invest', f, t)$(ord(f)=1 and ord(t)=1) = 0; // set one p_stepLength value, so that unassigned values will not cause an error later
p_sProbability(s) = 0;
p_sProbability('s000') = 1;
p_fProbability(f) = 0;
p_fProbability(fRealization) = 1;
p_msProbability('invest', s) = 0;
p_msProbability('invest', 's000') = 1;
p_mfProbability('invest', f) = 0;
p_mfProbability(mf_realization('invest', f)) = 1;
msStart('invest', 's000') = 1;
msEnd('invest', 's000') = msStart('invest', 's000') + 48;
);
\ No newline at end of file
);
......@@ -42,10 +42,10 @@ if (mType('schedule'),
mSettings('schedule', 'samples') = 1;
// Define Initial and Central samples
msInitial('schedule', s) = no;
msInitial('schedule', 's000') = yes;
msCentral('schedule', s) = no;
msCentral('schedule', 's000') = yes;
ms_initial('schedule', s) = no;
ms_initial('schedule', 's000') = yes;
ms_central('schedule', s) = no;
ms_central('schedule', 's000') = yes;
// Define time span of samples
msStart('schedule', 's000') = mSettings('schedule', 't_start');
......@@ -86,14 +86,14 @@ if (mType('schedule'),
mSettings('schedule', 'readForecastsInTheLoop') = 1;
// Define Realized and Central forecasts
mfRealization('schedule', f) = no;
mfRealization('schedule', 'f00') = yes;
mfCentral('schedule', f) = no;
mfCentral('schedule', 'f02') = yes;
mf_realization('schedule', f) = no;
mf_realization('schedule', 'f00') = yes;
mf_central('schedule', f) = no;
mf_central('schedule', 'f02') = yes;
// Define forecast probabilities (weights)
p_mfProbability('schedule', f) = 0;
p_mfProbability(mfRealization('schedule', f)) = 1;
p_mfProbability(mf_realization('schedule', f)) = 1;
p_mfProbability('schedule', 'f01') = 0.2;
p_mfProbability('schedule', 'f02') = 0.6;
p_mfProbability('schedule', 'f03') = 0.2;
......
$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
* =============================================================================
* --- Load Model Parameters ---------------------------------------------------
* =============================================================================
// Include desired model definition files here
$include 'defModels\scheduleInit_temp.gms'
$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
* =============================================================================
* --- Sets to define time, forecasts and samples ------------------------------
* =============================================================================
s "Samples from historical periods" / s000 * s999 /
f "Forecasts for the short term" / f00 * f99 /
t "Model time steps" / t000000 * t017568 /
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment