How to check infeasible results in gdx file?

Hi,

I’m running my model multiple times using a loop statement,
and I would like to check that model has infeasible or not.

For example,
there is a code like: loop(day, codes; ); but some of the days are infeasible. (already checked using process log)

Is there any way that I can check infeasible “days” not in process log but using gdx file?
It would be a big help if I can notice infeasible days at a glance.

Jake.

Sure, the model attribute “modStat” (https://www.gams.com/latest/docs/UG_GamsCall.html#GAMSAOmodelstat) gives you programmatic access to the model status. You can save the model status in a parameter: “mstat(day) = mymodel.modstat;” and save this to GDX. Be aware that there are multiple “infeasible” model status values, 4, 10, 19.

-Michael

There are tons of functions that I need to know…
Thanks, Michael!

Jake