Gurobi can return the following status codes to an AMPL session.
| Value | Message |
| 0 | optimal solution |
|---|---|
| 100 | suboptimal: could not satisfy optimaliter tolerances |
| 200 | infeasible [IIS computation not attempted] |
| 201 | infeasible [IIS returned] |
| 202 | infeasible [IIS finder failed] |
| 203 | infeasible; .dunbdd returned [IIS computation not attempted] |
| 204 | infeasible; .dunbdd returned [IIS also returned] |
| 205 | infeasible; .dunbdd returned [IIS finder failed] |
| 300 | unbounded |
| 301 | unbounded [unbounded or infeasible; IIS finder failed] |
| 302 | unbounded; .unbdd returned |
| 303 | unbounded; .unbdd returned [IIS finder failed] |
| 400 | cutoff reached |
| 401 | iteration limit |
| 402 | node limit |
| 403 | time limit |
| 404 | solution limit |
| 500 | Could not create the gurobi environment |
| 501 | Gurobi call failed [message gives routine name] |
| 502 | misc. failure [message gives details] |
| 503 | Bad $gurobi_options |
| 504 | Surprise VBasis[...] = ... |
| 505 | Surprise CBasis[...] = ... |
| 506 | Gurobi set/get parameter failed [message gives more details] |
| 510 | cannot open logfile (specified in $gurobi_options or command line) |
| 511 | cannot open paramfile (specified in $gurobi_options or command line) |
| 512 | missing value in paramfile |
| 513 | extra text in paramfile |
| 514 | invalid parameter name in paramfile |
| 520 | numeric error |
| 521 | nonlinear objective |
| 522 | nonlinear constraint |
| 523 | quadratic objective involving division by 0 |
| 524 | indefinite quadratic objective |
| 567 | complementarity constraint |
| 600 | interrupted |