Commit ec904731 authored by Juha Kiviluoma's avatar Juha Kiviluoma
Browse files

Move options to a separate file (1_input.gms) in the input directory and make...

Move options to a separate file (1_input.gms) in the input directory and make a template for that in the root directory (1_input_temp.gms).
parent cc1c7fa6
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.0004 // Relative gap between the found solution and the best possible solution
solvelink = %Solvelink.Loadlibrary% // Solvelink controls how the problem is passed from GAMS to the solver. Loadlibrary constant means that the model is passed in core without the use of temporary files.
* profile = 8 // Profile will show the execution speed of statements at the defined depth within loops.
* bratio = 0.25 // How large share of the candidate elements need to be found for advanced basis in LP problems. Default 0.25.
* solveopt = merge // How solution values are stored after multiple solves. Default merge.
* savepoint = 1 // NOTE! Savepoint is controlled by Backbone model options.
threads = -1 // How many cores the solver can use: 0 = all cores; negative values = all cores - n
$ifi not '%debug%' == 'yes'
solprint = Silent // Controls solution file outputs - debug mode will be more verbose
;
......@@ -69,18 +69,8 @@ $onempty // Allow empty data definitions
* Output file streams
files log /''/, gdx, f_info /'output\info.txt'/;
options
optca = 0
optcr = 0.0004
* profile = 8
solvelink = %Solvelink.Loadlibrary%
* bratio = 0.25
* solveopt = merge
* savepoint = 1
threads = 1
$ifi not '%debug%' == 'yes'
solprint = Silent
;
* Include options file to control the solver
$if exist 'input\1_options.gms' $include 'input\1_options.gms';
* === Definitions, sets, parameters and input data=============================
......@@ -125,7 +115,7 @@ loop(modelSolves(mSolve, tSolve),
$$include 'inc\4a_outputVariant.gms' // Store results from the loop
$iftheni.debug '%debug%' == 'yes'
putclose gdx;
put_utility 'gdxout' / 'output\'mSolve.tl:0, '-', tSolve.tl:0, '.gdx';
put_utility 'gdxout' / 'output\' mSolve.tl:0 '-' tSolve.tl:0 '.gdx';
execute_unload
$$include defOutput\debugSymbols.inc
;
......
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