8.3. Constants

The following are the names of different constants and the meanings of specific values.

Note

Constants are defined in different languages of the multi-language SDK. For example: In java and python versions, MDO.UNKNOWN is used to represent constant UNKNOWN. However, in c and cpp versions, it is MDO_UNKNOWN instead.

8.3.1. status

Constant Name

Constant Value

Constant Meaning

UNKNOWN

0

Model status is not available.

OPTIMAL

1

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

INFEASIBLE

2

Model was proven to be primal infeasible.

UNBOUNDED

3

Model was proven to be primal unbounded.

INF_OR_UBD

4

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

SUB_OPTIMAL

5

A sub-optimal solution is available.

8.3.2. errors

Constant Name

Constant Value

Constant Meaning

OKAY

0

Nothing wrong.

ERROR

-1

Unspecified internal error.

NOMEMORY

-2

Insufficient memory.

INVALID_ARGUMENT

-3

Arguments is not valid.

INVALID_LICENSE

-10

License is not valid.

HOME_ENV_NOT_FOUND

-11

MINDOPT_HOME does not exists.

DLL_ERROR

-12

Failed to load a dynamic library.

IO_ERROR

-1000

General IO error.

FILE_READ_ERROR

-1001

Failed to read data from file.

FILE_WRITE_ERROR

-1002

Failed to write data to file.

DIRECTORY_ERROR

-1003

Invalid directory.

FORMAT_ERROR

-1100

Failed to parse the file.

VERSION_ERROR

-1101

Failed to load model/parameter from file due to incompatible version error.

REMOTE_INVALID_TOKEN

-1200

The input token ID for the remote computing is not valid.

REMOTE_CONNECTION_ERROR

-1201

Failed to connect to the remote computing server.

MODEL_INPUT_ERROR

-2000

Failed to input/load a model.

MODEL_EMPTY

-2001

Model is empty.

MODEL_INVALID_ROW_IDX

-2002

Row index is not valid .

MODEL_INVALID_COL_IDX

-2003

Column index is not valid.

MODEL_INVALID_ROW_NAME

-2004

Row name is not valid.

MODEL_INVALID_COL_NAME

-2005

Column name is not valid.

MODEL_INVALID_SYM_MAT_IDX

-2006

Index of the symmetric matrix is not valid.

MODEL_INVALID_SYM_MAT_ROW_IDX

-2007

Row index of a symmetric matrix is not valid.

MODEL_INVALID_SYM_MAT_COL_IDX

-2008

Column index of a symmetric matrix is not valid.

MODEL_INVALID_STR_ATTR

-2010

A string attribute was not recognized.

MODEL_INVALID_INT_ATTR

-2011

An integer attribute was not recognized.

MODEL_INVALID_REAL_ATTR

-2012

A real attribute was not recognized.

MODEL_INVALID_REAL_ATTR_SYM_MAT

-2013

A real attribute for symmetric matrix was not recognized.

MODEL_INVALID_CHAR_ATTR

-2014

A char attribute was not recognized.

MODEL_INVALID_MAT_ATTR

-2015

A matrix attribute was not recognized.

MODEL_INVALID_ATTR_NAME

-2019

An attribute name was not recognized.

MODEL_INVALID_SOS_TYPE

-2020

A SOS type was not recognized.

MODEL_INVALID_SOS_IDX

-2021

SOS index is not valid.

MODEL_INVALID_INDICATOR_COL_IDX

-2022

Column index to specify a indicator variable is not valid.

MODEL_INVALID_INDICATOR_ROW_IDX

-2023

Indicator constraint index is not valid.

MODEL_INVALID_INT_RELAX

-2024

Integral column cannot be relaxed, due to indicator constraints.

DATA_NOT_AVAILABLE

-2025

Attempted to query or set an attribute that could not be accessed at that time.

NO_SOLN

-3000

Solution is not available.

NO_RAY

-3001

Unbounded ray is not available.

NO_STATISTICS

-3002

Solver statistics is not available.

INVALID_BASIS_STATUS

-3003

Unrecognized basis status.

IIS_NO_SOLN

-3004

No IIS available for the current model.

IIS_FEASIBLE

-3005

IIS is not available on a feasible model.

INVALID_SOL_IDX

-3006

Solution index to retrieve is out of range

PARAM_SET_ERROR

-4000

Failed to change a parameter value.

PARAM_GET_ERROR

-4001

Failed to retrieve a parameter value.

CB_INVALID_WHERE

-5000

Invalid where argument in a callback function.

CB_INVALID_WHAT

-5001

Invalid what argument in a callback function.

CB_INVALID_SUBMISSION

-5002

An error occured in a submission-type (cbsolution, cbcut, cbbranch) callback function.

ABORT_ITERATION_LIMIT

-9000

Iteration limit was reached in optimization.

ABORT_TIME_LIMIT

-9001

Time limit was reached in optimization.

ABORT_INTERRUPTED

-9002

User termination request captured during optimization.

ABORT_NODE_LIMIT

-9003

Node limit was reached in optimization.

ABORT_STALLING_NODE_LIMIT

-9004

Stalling node limit was reached in optimization.

ABORT_SOLUTION_LIMIT

-9005

Solution was reached in optimization.

ABORT_INVALID_METHOD

-9011

Selected optimization method is not supported.

ABORT_SOLVER_NOT_AVAILABLE

-9012

Optimization solver is not available for the input model.

SIMPLEX_NUMERIC

-10000

Numerical difficulties in Simplex algorithm.

INTERIOR_NUMERIC

-20000

Numerical difficulties in Interior-point algorithm.

IIS_NUMERIC

-30000

Numerical difficulties occured while computing IIS.

CE_VALIDATE_FAILED

-40000

Community license validation was failed.