User Tools

Site Tools


How do I automatically re-submit a model, which failed due to a solver license error?

You can program this into your GAMS program. The GAMS/CPLEX-link returns with a license error in the solver status. If this happens, you could put your model to sleep for x seconds and try again:

  solve mymodel min z using mip;
  if (mymodel.solvestat=7, display$sleep(5) 'sleep 5 seconds for Cplex
until mymodel.solvestat<>7;

If your version of GAMS does not have the sleep command, you could call 'execute “sleep 5”;' to call an external program.

IMPRESSUM / LEGAL NOTICEPRIVACY POLICY id_solver/how_do_i_automatically_re-submit_a_model_which_failed_due_to_a_solver_license_error.txt · Last modified: 2007/11/06 17:16 by Franz Nelissen