Commit b9c0aff3 authored by Ian Bell's avatar Ian Bell
Browse files

ERRORS. Added GUROBI_LICENSE_ABSENT as a specified Gurobi Exception.

[git-p4: depot-paths = "//ReForm/ReForm/main/CoMISo/": change = 11322]
parent 22cd9c4a
...@@ -245,8 +245,9 @@ void GUROBISolver::solve( ...@@ -245,8 +245,9 @@ void GUROBISolver::solve(
// NOTE: we could propagate e.getMessage() either using std::exception, or a specialized Reform exception type // NOTE: we could propagate e.getMessage() either using std::exception, or a specialized Reform exception type
switch ( e.getErrorCode() ) switch ( e.getErrorCode() )
{ {
// TODO: Find where these are defined and use the correct name for 10010 // The GRB_ error codes are defined in gurobi_c.h Gurobi header.
case 10010: THROW_OUTCOME(GUROBI_LICENCE_MODEL_TOO_LARGE); case GRB_ERROR_NO_LICENSE: THROW_OUTCOME(GUROBI_LICENCE_ABSENT);
case GRB_ERROR_SIZE_LIMIT_EXCEEDED: THROW_OUTCOME(GUROBI_LICENCE_MODEL_TOO_LARGE);
default: THROW_OUTCOME(UNSPECIFIED_GUROBI_EXCEPTION); default: THROW_OUTCOME(UNSPECIFIED_GUROBI_EXCEPTION);
} }
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment