Hello,
I want to terminate the extensive form in PySP after a certain value or gap is reached. I want to get the solution for that particular threshold.
This is what I wrote:
runef -m Reference_Model.py --solver=gurobi --solve --solution-writer=pyomo.pysp.plugins.csvsolutionwriter --solver-options="mipgap=0.0003 TimeLimit=300"
However, I get the following error message:
File "...\ef_writer_script.py", line 513, in solve
raise RuntimeError(msg)
RuntimeError: EF solve failed solution status check:
Solver Status: aborted
Termination Condition: maxTimeLimit
Solution Status: stoppedByLimit
This works for runph as I can successfully get the CSV file after the simulation terminates. However, I am not able to generate the solution file "ef.csv" using --solver-options due to the error above.
In my problem, the extensive form is kind of stuck at 0.09% gap for over 9 hours and I want to access the solution at this point.
I would really appreciate any help with this. Thank you.
Regards,
Abodh