7.4.5. 优化结果码

7.4.5.1. C/C++

enum MdoStatus

Model status.

Values:

enumerator MDO_UNKNOWN

Model status is not available.

enumerator MDO_OPTIMAL

Model was proven to be primal/dual feasible, and an optimal solution is available.

enumerator MDO_INFEASIBLE

Model was proven to be primal infeasible.

enumerator MDO_UNBOUNDED

Model was proven to be primal unbounded.

enumerator MDO_INF_OR_UBD

Model was proven to be either primal infeasible or primal unbounded.

7.4.5.2. Python

优化结果码及其说明可以通过以下方式获得:

status_code, status_msg = model.get_status()