Commit b94e23ed authored by Toni's avatar Toni
Browse files

Added input files and result files

Input files will be modified
Result.gdx can be used to check if the output changes due to modifications
parent a96b0be2
Options
// Solution gap: the first one reached will end iteration
optca = 0 // Absolute gap between the found solution and the best possible solution
optcr = 0.005 // Relative gap between the found solution and the best possible solution
// Solver options
Solvelink = %Solvelink.ChainScript%
threads = 1 // How many cores the solver can use: 0 = all cores; negative values = all cores - n
solprint = silent // Don't print a lot of stuff into .lst?
;
$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
* =============================================================================
* --- Model Definition - Building ---------------------------------------------
* =============================================================================
if (mType('building'),
m('building') = yes; // Definition, that the model exists by its name
* --- Define Key Execution Parameters in Time Indeces -------------------------
// Define simulation start and end time indeces
mSettings('building', 't_start') = 1; // First time step to be solved, 1 corresponds to t000001 (t000000 will then be used for initial status of dynamic variables)
mSettings('building', 't_end') = 53*168; // Last time step to be included in the solve (may solve and output more time steps in case t_jump does not match)
// Define simulation horizon and moving horizon optimization "speed"
mSettings('building', 't_horizon') = 336; // How many active time steps the solve contains (aggregation of time steps does not impact this, unless the aggregation does not match)
mSettings('building', 't_jump') = 168; // How many time steps the model rolls forward between each solve
// Define length of data for proper circulation
mSettings('building', 'dataLength') = 8760;
* =============================================================================
* --- Model Time Structure ----------------------------------------------------
* =============================================================================
* --- Define Samples ----------------------------------------------------------
// Number of samples used by the model
mSettings('building', 'samples') = 1;
// Define Initial and Central samples
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') = 1;
msEnd('building', 's000') = msStart('building', 's000') + mSettings('building', 't_end') + mSettings('building', 't_horizon');
// Define the probability (weight) of samples
p_msProbability('building', s) = 0;
p_msProbability('building', 's000') = 1;
p_msWeight('building', s) = 0;
p_msWeight('building', 's000') = 1;
p_msAnnuityWeight('building', s) = 0;
p_msAnnuityWeight('building', 's000') = 1;
* --- Define Time Step Intervals ----------------------------------------------
// Define the duration of a single time-step in hours
mSettings('building', 'stepLengthInHours') = 1;
// Define the time step intervals in time-steps
mInterval('building', 'stepsPerInterval', 'c000') = 1;
mInterval('building', 'lastStepInIntervalBlock', 'c000') = 336;
* --- z-structure for superpositioned nodes ----------------------------------
// add the candidate periods to model
// no need to touch this part
// The set is mainly used in the 'invest' model
mz('building', z) = no;
// Mapping between typical periods (=samples) and the candidate periods (z).
// Assumption is that candidate periods start from z000 and form a continuous
// sequence.
// The set is mainly used in the 'invest' model
zs(z,s) = no;
* =============================================================================
* --- Model Forecast Structure ------------------------------------------------
* =============================================================================
// Define the number of forecasts used by the model
mSettings('building', 'forecasts') = 0;
// Define forecast properties and features
mSettings('building', 't_forecastStart') = 0; // At which time step the first forecast is available ( 1 = t000001 )
mSettings('building', 't_forecastLengthUnchanging') = 0; // Length of forecasts in time steps - this does not decrease when the solve moves forward (requires forecast data that is longer than the horizon at first)
mSettings('building', 't_forecastLengthDecreasesFrom') = 0; // Length of forecasts in time steps - this decreases when the solve moves forward until the new forecast data is read (then extends back to full length)
mSettings('building', 't_forecastJump') = 0; // How many time steps before new forecast is available
// Define Realized and Central forecasts
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(mf_realization('building', f)) = 1;
// Define active model features
active('building', 'storageValue') = yes;
* =============================================================================
* --- Model Features ----------------------------------------------------------
* =============================================================================
* --- Define Reserve Properties -----------------------------------------------
// Define whether reserves are used in the model
mSettingsReservesInUse('building', restype, up_down) = no;
* --- Define Unit Approximations ----------------------------------------------
// Define the last time step for each unit aggregation and efficiency level (3a_periodicInit.gms ensures that there is a effLevel until t_horizon)
mSettingsEff('building', 'level1') = mSettings('building', 't_horizon');
// Define the horizon when start-up and shutdown trajectories are considered
mSettings('building', 't_trajectoryHorizon') = 0;
* --- Define output settings for results --------------------------------------
// Define the length of the initialization period. Results outputting starts after the period. Uses ord(t) > t_start + t_initializationPeriod in the code.
mSettings('building', 't_initializationPeriod') = 0; // r_state and r_online are stored also for the last step in the initialization period, i.e. ord(t) = t_start + t_initializationPeriod
* --- Define the use of additional constraints for units with incremental heat rates
// How to use q_conversionIncHR_help1 and q_conversionIncHR_help2
mSettings('building', 'incHRAdditionalConstraints') = 0;
// 0 = use the constraints but only for units with non-convex fuel use
// 1 = use the constraints for all units represented using incremental heat rates
* --- Control the solver ------------------------------------------------------
// Control the use of advanced basis
mSettings('building', 'loadPoint') = 0; // 0 = no basis, 1 = latest solve, 2 = all solves, 3 = first solve
mSettings('building', 'savePoint') = 0; // 0 = no basis, 1 = latest solve, 2 = all solves, 3 = first solve
); // END if(mType)
$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 '%input_dir%\buildingInit.gms'
* =============================================================================
* --- Optional Data Manipulation ----------------------------------------------
* =============================================================================
node_superpos(node) = no;
s "Samples from historical periods" / s000 * s001 /
f "Forecasts for the short term" / f00 * f03 /
t "Model time steps" / t000000 * t050000 /
scenario "Long-term scenarios" / scen00 /
z "periods for superpositioning of states (candidate periods)" /z000 * z100/
\ No newline at end of file
MODEL RUN DETAILS
User tltoni
Date 12/16/21
Time 18:42:28
GAMS version 37.1
GAMS system GAMS Base Module 37.1.0 r07954d5 Released Nov 11, 2021 WEI x86 64bit/MS Window
version v1.5-56-ga96b0be+
time (s)
Compilation 1
Execution 10
Total 50
MODEL FEATURES
Model: building
-----------------------------------------------------------------------
Active features:
storageValue Use storage value instead of fixed control
Start time: 1
Length of forecasts: 0
Model horizon: 336
Model jumps after solve: 168
Last time period to solve: 8904
Number of samples: 1
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