Commit 08d873cb authored by Erkka Rinne's avatar Erkka Rinne
Browse files

Fix checking solver and model status

Solver might terminate normally (solvestat = 1) even when the model is found infeasible.
parent 8b0e8200
...@@ -157,9 +157,9 @@ $include '%input_dir%/modelsInit.gms' ...@@ -157,9 +157,9 @@ $include '%input_dir%/modelsInit.gms'
* === Simulation ============================================================== * === Simulation ==============================================================
// Macro for checking solve status (1 = normal completion) // Macro for checking solve and model status
$macro checkSolveStatus(mdl) \ $macro checkSolveStatus(mdl) \
if(mdl.solveStat > 1 and (mdl.modelStat <> 1 or mdl.modelStat <> 8), \ if(mdl.solveStat > 1 or not (mdl.modelStat = 1 or mdl.modelStat = 8), \
execError = execError + 1 \ execError = execError + 1 \
) )
......
...@@ -16,6 +16,7 @@ All notable changes to this project will be documented in this file. ...@@ -16,6 +16,7 @@ All notable changes to this project will be documented in this file.
- Including start-up fuel consumption in q_balance - Including start-up fuel consumption in q_balance
- Updated start-up cost and start-up emission calculation - Updated start-up cost and start-up emission calculation
- output_dir command line argument was missing quotes in the code and directories with space did not work - output_dir command line argument was missing quotes in the code and directories with space did not work
- Checking solve and model status
## 1.5 - 2021-10-05 ## 1.5 - 2021-10-05
### Added ### Added
......
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