I am trying to write the model status to an external file after the solve statement:
[...]
Model ref / all / ;
Solve ref using lp minimising totex ;
$echo %ref.modelStat% > model_status.txt
The last statement does not work this way. I end up with %ref.modelStat% in the file. What would be a correct syntax / a better way to achieve this? How can write the model status to an external file?