16-11-2023, 02:04 PM

Dear forum members,

I use the solver gurobi and I have difficulty to get results when the solver encounters a resolution error.

I would like to force the barrier algorithm to stop at a given number of iterations and analyze the results to debug my model. I modified my run file with the line ”$SET ERR_ABORT NO” to get a gdx of results even if TIMES encounters a resolution error. Then I modified the .opt file to set a maximum of barrier iteration.

The results I get with gurobi in this case are incomplete, for instance there is no value for OBJZ or Var_Act. I tried with CPLEX and I get a vd file which is more complete and include these two attributes.

I noticed that the TIMES Solve status is different depending of the solver. Gurobi: Error unknown and cplex: Intermediate infeasible. It seems that TIMES has a different procedure for these two cases.

Do you have any idea how can I get a gdx file of the result when I force to stop barrier with gurobi please ?

There is attached a gams_wrk of a demo model modified for gurobi and cplex where barrier iteration are limited. Associated run logs are included.

Thank you for the help

Victor

I use the solver gurobi and I have difficulty to get results when the solver encounters a resolution error.

I would like to force the barrier algorithm to stop at a given number of iterations and analyze the results to debug my model. I modified my run file with the line ”$SET ERR_ABORT NO” to get a gdx of results even if TIMES encounters a resolution error. Then I modified the .opt file to set a maximum of barrier iteration.

The results I get with gurobi in this case are incomplete, for instance there is no value for OBJZ or Var_Act. I tried with CPLEX and I get a vd file which is more complete and include these two attributes.

I noticed that the TIMES Solve status is different depending of the solver. Gurobi: Error unknown and cplex: Intermediate infeasible. It seems that TIMES has a different procedure for these two cases.

Do you have any idea how can I get a gdx file of the result when I force to stop barrier with gurobi please ?

There is attached a gams_wrk of a demo model modified for gurobi and cplex where barrier iteration are limited. Associated run logs are included.

Thank you for the help

Victor