# AMPL-Gurobi Result Values

Gurobi can return the following status codes to an AMPL session.

Value | Message
0 | optimal solution
1 | optimal solution with integer variables rounded to integers
2 | optimal solution with nonintegral "integer" variables
100 | suboptimal: could not satisfy optimaliter tolerances
101 | bestbndstop reached
102 | bestobjstop reached
103 | bestobjstop or bestbndstop reached
104 | bestobjstop or bestbndstop reached with no solution available
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 | objective cutoff
401 | iteration limit with a feasible solution
402 | node limit with a feasible solution
403 | time limit with a feasible solution
404 | solution limit
405 | interrupted with a feasible solution
411 | iteration limit without a feasible solution
412 | node limit without a feasible solution
413 | time limit without a feasible solution
415 | interrupted without a feasible solution
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 or constraint
525 | quadratic constraint involving division by 0
530 | could not open serverlic file
531 | error in serverlic file
532 | error while tuning
540 | Gurobi Compute Server not reached or bad pool_... settings
541 | Rejected by Gurobi Compute Server
542 | Feature not supported by Gurobi Compute Server
543 | Feature not supported
563 | logical constraint is not an indicator constraint
564 | bad suffixes for multiple objectives
565 | Error return from named routine
567 | complementarity constraint
570 | solution found but not available
601 | could not talk to Gurobi compute server
602 | job rejected by Gurobi compute server
603 | no license for specified gurobi compute server
604 | surprise return while trying to use Gurobi compute server
605 | bad value for cloudid or cloudkey, or Gurobi Cloud out of reach