8.5.3. Solution code

8.5.3.1. C/C++

Solution code, solution status, Description

Solution code

Solution status

Description

0

MDO_UNKNOWN

Model status is not available.

1

MDO_OPTIMAL

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

2

MDO_INFEASIBLE

Model was proven to be primal infeasible.

3

MDO_UNBOUNDED

Model was proven to be primal unbounded.

4

MDO_INF_OR_UBD

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

5

MDO_SUB_OPTIMAL

A sub-optimal solution is available.

8.5.3.2. Python

The Solution code of MindOpt Python SDK can be obtained in the following ways:

status_code, status_msg = model.get_status()