NO FRAMES

Group optim.cplex.errorcodes

The Callable Library macros that define error codes, their symbolic constants, their short message strings, and their explanations. There is a key to the symbols in the short message strings after the table.
Macro Summary
CPXERR_ABORT_STRONGBRANCH 1263 Strong branching aborted.
CPXERR_ADJ_SIGN_QUAD 1606 Lines %d,%d: Adjacent sign and quadratic character.
CPXERR_ADJ_SIGN_SENSE 1604 Lines %d,%d: Adjacent sign and sense.
CPXERR_ADJ_SIGNS 1602 Lines %d,%d: Adjacent signs.
CPXERR_ALGNOTLICENSED 32024 Licensing problem: Optimization algorithm not licensed.
CPXERR_ARC_INDEX_RANGE 1231 Arc index %d out of range.
CPXERR_ARRAY_BAD_SOS_TYPE 3009 Illegal sostype entry %d.
CPXERR_ARRAY_NOT_ASCENDING 1226 Array entry %d not ascending.
CPXERR_ARRAY_TOO_LONG 1208 Array length too long.
CPXERR_BAD_ARGUMENT 1003 Bad argument to Callable Library routine.
CPXERR_BAD_BOUND_SENSE 1622 Line %d: Invalid bound sense.
CPXERR_BAD_BOUND_TYPE 1457 Line %d: Unrecognized bound type '%s'.
CPXERR_BAD_CHAR 1537 Illegal character.
CPXERR_BAD_CTYPE 3021 Illegal ctype entry %d.
CPXERR_BAD_DIRECTION 3012 Line %d: Unrecognized direction '%c%c'.
CPXERR_BAD_EXPO_RANGE 1435 Line %d: Exponent '%s' out of range.
CPXERR_BAD_EXPONENT 1618 Line %d: Exponent '%s' not %s with number.
CPXERR_BAD_FILETYPE 1424 Invalid filetype.
CPXERR_BAD_ID 1617 Line %d: '%s' not valid identifier.
CPXERR_BAD_INDCONSTR 1439 Line %d: Illegal indicator constraint.
CPXERR_BAD_INDICATOR 1551 Line %d: Unrecognized basis marker '%s'.
CPXERR_BAD_LAZY_UCUT 1438 Line %d: Illegal lazy constraint or user cut.
CPXERR_BAD_LUB 1229 Illegal bound change specified by entry %d.
CPXERR_BAD_METHOD 1292 Invalid choice of optimization method.
CPXERR_BAD_NUMBER 1434 Line %d: Couldn't convert '%s' to a number.
CPXERR_BAD_OBJ_SENSE 1487 Line %d: Unrecognized objective sense '%s'.
CPXERR_BAD_PARAM_NAME 1028 Bad parameter name to CPLEX parameter routine.
CPXERR_BAD_PARAM_NUM 1013 Bad parameter number to CPLEX parameter routine.
CPXERR_BAD_PIVOT 1267 Illegal pivot.
CPXERR_BAD_PRIORITY 3006 Negative priority entry %d.
CPXERR_BAD_PROB_TYPE 1022 Unknown problem type. Problem not changed.
CPXERR_BAD_ROW_ID 1532 Incorrect row identifier.
CPXERR_BAD_SECTION_BOUNDS 1473 Line %d: Unrecognized section marker. Expecting RANGES, BOUNDS, QMATRIX, or ENDATA.
CPXERR_BAD_SECTION_ENDATA 1462 Line %d: Unrecognized section marker. Expecting ENDATA.
CPXERR_BAD_SECTION_QMATRIX 1475 Line %d: Unrecognized section marker. Expecting QMATRIX or ENDATA.
CPXERR_BAD_SENSE 1215 Illegal sense entry %d.
CPXERR_BAD_SOS_TYPE 1442 Line %d: Unrecognized SOS type: %c%c.
CPXERR_BAD_STATUS 1253 Invalid status entry %d for basis specification.
CPXERR_BADPRODUCT 32023 Licensing problem: License not valid for this product.
CPXERR_BAS_FILE_SHORT 1550 Basis missing some basic variables.
CPXERR_BAS_FILE_SIZE 1555 %d %s basic variable(s).
CPXERR_CALLBACK 1006 Error during callback.
CPXERR_CANT_CLOSE_CHILD 1021 Cannot close a child environment.
CPXERR_CHILD_OF_CHILD 1019 Cannot clone a cloned environment.
CPXERR_COL_INDEX_RANGE 1201 Column index %d out of range.
CPXERR_COL_REPEAT_PRINT 1478 %d Column repeats messages not printed.
CPXERR_COL_REPEATS 1446 Column '%s' repeats.
CPXERR_COL_ROW_REPEATS 1443 Column '%s' has repeated row '%s'.
CPXERR_COL_UNKNOWN 1449 Line %d: '%s' is not a column name.
CPXERR_CONFLICT_UNSTABLE 1720 Infeasibility not reproduced.
CPXERR_COUNT_OVERLAP 1228 Count entry %d specifies overlapping entries.
CPXERR_COUNT_RANGE 1227 Count entry %d negative or larger than allowed.
CPXERR_DBL_MAX 1233 Numeric entry %d is larger than allowed maximum of %g.
CPXERR_DECOMPRESSION 1027 Decompression of unpresolved problem failed.
CPXERR_DUP_ENTRY 1222 Duplicate entry or entries.
CPXERR_EXTRA_BV_BOUND 1456 Line %d: 'BV' bound type illegal when prior bound given.
CPXERR_EXTRA_FR_BOUND 1455 Line %d: 'FR' bound type illegal when prior bound given.
CPXERR_EXTRA_FX_BOUND 1454 Line %d: 'FX' bound type illegal when prior bound given.
CPXERR_EXTRA_INTEND 1481 Line %d: 'INTEND' found while not reading integers.
CPXERR_EXTRA_INTORG 1480 Line %d: 'INTORG' found while reading integers.
CPXERR_EXTRA_SOSEND 1483 Line %d: 'SOSEND' found while not reading a SOS.
CPXERR_EXTRA_SOSORG 1482 Line %d: 'SOSORG' found while reading a SOS.
CPXERR_FAIL_OPEN_READ 1423 Could not open file '%s' for reading.
CPXERR_FAIL_OPEN_WRITE 1422 Could not open file '%s' for writing.
CPXERR_FILE_ENTRIES 1553 Line %d: Wrong number of entries.
CPXERR_FILE_FORMAT 1563 File '%s' has an incompatible format. Try setting reverse flag.
CPXERR_FILTER_VARIABLE_TYPE 3414 Diversity filter has non-binary variable(s).
CPXERR_ILOG_LICENSE 32201 ILM Error %d.
CPXERR_IN_INFOCALLBACK 1804 Calling routines not allowed in informational callback.
CPXERR_INDEX_NOT_BASIC 1251 Index must correspond to a basic variable.
CPXERR_INDEX_RANGE 1200 Index is outside range of valid values.
CPXERR_INDEX_RANGE_HIGH 1206 %s: 'end' value %d is greater than %d.
CPXERR_INDEX_RANGE_LOW 1205 %s: 'begin' value %d is less than %d.
CPXERR_INT_TOO_BIG 3018 Magnitude of variable %s: %g exceeds integer limit %d.
CPXERR_INT_TOO_BIG_INPUT 1463 Line %d: Magnitude exceeds integer limit %d.
CPXERR_INVALID_NUMBER 1650 Number not representable in exponential notation.
CPXERR_LIMITS_TOO_BIG 1012 Problem size limits too large.
CPXERR_LINE_TOO_LONG 1465 Line %d: Line longer than limit of %d characters.
CPXERR_LO_BOUND_REPEATS 1459 Line %d: Repeated lower bound.
CPXERR_LP_NOT_IN_ENVIRONMENT 1806 Problem is not member of this environment.
CPXERR_MIPSEARCH_WITH_CALLBACKS 1805 MIP dynamic search incompatible with control callbacks.
CPXERR_MISS_SOS_TYPE 3301 Line %d: Missing SOS type.
CPXERR_MSG_NO_CHANNEL 1051 No channel pointer supplied to message routine.
CPXERR_MSG_NO_FILEPTR 1052 No file pointer found for message routine.
CPXERR_MSG_NO_FUNCTION 1053 No function pointer found for message routine.
CPXERR_NAME_CREATION 1209 Unable to create default names.
CPXERR_NAME_NOT_FOUND 1210 Name not found.
CPXERR_NAME_TOO_LONG 1464 Line %d: Identifier/name too long to process.
CPXERR_NAN 1225 Numeric entry %d is not a double precision number (NAN).
CPXERR_NEED_OPT_SOLN 1252 Optimal solution required.
CPXERR_NEGATIVE_SURPLUS 1207 Insufficient array length.
CPXERR_NET_DATA 1530 Inconsistent network file.
CPXERR_NET_FILE_SHORT 1538 Unexpected end of network file.
CPXERR_NO_BARRIER_SOLN 1223 No barrier solution exists.
CPXERR_NO_BASIC_SOLN 1261 No basic solution exists.
CPXERR_NO_BASIS 1262 No basis exists.
CPXERR_NO_BOUND_SENSE 1621 Line %d: No bound sense.
CPXERR_NO_BOUND_TYPE 1460 Line %d: Bound type missing.
CPXERR_NO_COLUMNS_SECTION 1472 Line %d: No COLUMNS section.
CPXERR_NO_CONFLICT 1719 No conflict is available.
CPXERR_NO_DUAL_SOLN 1232 No dual solution exists.
CPXERR_NO_ENDATA 1552 ENDATA missing.
CPXERR_NO_ENVIRONMENT 1002 No environment.
CPXERR_NO_FILENAME 1421 File name not specified.
CPXERR_NO_ID 1616 Line %d: Expected identifier, found '%c'.
CPXERR_NO_ID_FIRST 1609 Line %d: Expected identifier first.
CPXERR_NO_INT_X 3023 Integer feasible solution values are unavailable.
CPXERR_NO_LU_FACTOR 1258 No LU factorization exists.
CPXERR_NO_MEMORY 1001 Out of memory.
CPXERR_NO_MIPSTART 3020 No MIP start exists.
CPXERR_NO_NAME_SECTION 1441 Line %d: No NAME section.
CPXERR_NO_NAMES 1219 No names exist.
CPXERR_NO_NORMS 1264 No norms available.
CPXERR_NO_NUMBER 1615 Line %d: Expected number, found '%c'.
CPXERR_NO_NUMBER_BOUND 1623 Line %d: Missing bound number.
CPXERR_NO_NUMBER_FIRST 1611 Line %d: Expected number first.
CPXERR_NO_OBJ_SENSE 1436 Max or Min missing.
CPXERR_NO_OBJECTIVE 1476 Line %d: No objective row found.
CPXERR_NO_OP_OR_SENSE 1608 Line %d: Expected '+','-' or sense, found '%c'.
CPXERR_NO_OPERATOR 1607 Line %d: Expected '+' or '-', found '%c'.
CPXERR_NO_ORDER 3016 No priority order exists.
CPXERR_NO_PROBLEM 1009 No problem exists.
CPXERR_NO_QMATRIX_SECTION 1461 Line %d: No QMATRIX section.
CPXERR_NO_QP_OPERATOR 1614 Line %d: Expected ^ or *.
CPXERR_NO_QUAD_EXP 1612 Line %d: Expected quadratic exponent.
CPXERR_NO_RHS_COEFF 1610 Line %d: Expected RHS coefficient.
CPXERR_NO_RHS_IN_OBJ 1211 rhs has no coefficient in obj.
CPXERR_NO_RNGVAL 1216 No range values.
CPXERR_NO_ROW_NAME 1486 Line %d: No row name.
CPXERR_NO_ROW_SENSE 1453 Line %d: No row sense.
CPXERR_NO_ROWS_SECTION 1471 Line %d: No ROWS section.
CPXERR_NO_SENSIT 1260 Sensitivity analysis not available for current status.
CPXERR_NO_SOLN 1217 No solution exists.
CPXERR_NO_SOLNPOOL 3024 No solution pool exists.
CPXERR_NO_SOS 3015 No user-defined SOSs exist.
CPXERR_NO_SOS_SEPARATOR 1627 Expected ':', found '%c'.
CPXERR_NO_TREE 3412 Current problem has no tree.
CPXERR_NO_VECTOR_SOLN 1556 Vector solution does not exist.
CPXERR_NODE_INDEX_RANGE 1230 Node index %d out of range.
CPXERR_NODE_ON_DISK 3504 No callback info on disk/compressed nodes.
CPXERR_NOT_DUAL_UNBOUNDED 1265 Dual unbounded solution required.
CPXERR_NOT_FIXED 1221 Only fixed variables are pivoted out.
CPXERR_NOT_FOR_MIP 1017 Not available for mixed-integer problems.
CPXERR_NOT_FOR_QCP 1031 Not available for QCP.
CPXERR_NOT_FOR_QP 1018 Not available for quadratic programs.
CPXERR_NOT_MILPCLASS 1024 Not a MILP or fixed MILP.
CPXERR_NOT_MIN_COST_FLOW 1531 Not a min-cost flow problem.
CPXERR_NOT_MIP 3003 Not a mixed-integer problem.
CPXERR_NOT_MIQPCLASS 1029 Not a MIQP or fixed MIQP.
CPXERR_NOT_ONE_PROBLEM 1023 Not a single problem.
CPXERR_NOT_QP 5004 Not a quadratic program.
CPXERR_NOT_SAV_FILE 1560 File '%s' is not a SAV file.
CPXERR_NOT_UNBOUNDED 1254 Unbounded solution required.
CPXERR_NULL_NAME 1224 Null pointer %d in name array.
CPXERR_NULL_POINTER 1004 Null pointer for required data.
CPXERR_ORDER_BAD_DIRECTION 3007 Illegal direction entry %d.
CPXERR_PARAM_TOO_BIG 1015 Parameter value too big.
CPXERR_PARAM_TOO_SMALL 1014 Parameter value too small.
CPXERR_PRESLV_ABORT 1106 Aborted during presolve.
CPXERR_PRESLV_BAD_PARAM 1122 Bad presolve parameter setting.
CPXERR_PRESLV_BASIS_MEM 1107 Not enough memory to build basis for original LP.
CPXERR_PRESLV_COPYORDER 1109 Can't copy priority order info from original MIP.
CPXERR_PRESLV_COPYSOS 1108 Can't copy SOS info from original MIP.
CPXERR_PRESLV_CRUSHFORM 1121 Can't crush solution form.
CPXERR_PRESLV_DUAL 1119 The feature is not available for solving dual formulation.
CPXERR_PRESLV_FAIL_BASIS 1114 Could not load unpresolved basis for original LP.
CPXERR_PRESLV_INF 1117 Presolve determines problem is infeasible.
CPXERR_PRESLV_INForUNBD 1101 Presolve determines problem is infeasible or unbounded.
CPXERR_PRESLV_NO_BASIS 1115 Failed to find basis in presolved LP.
CPXERR_PRESLV_NO_PROB 1103 No presolved problem created.
CPXERR_PRESLV_SOLN_MIP 1110 Not enough memory to recover solution for original MIP.
CPXERR_PRESLV_SOLN_QP 1111 Not enough memory to compute solution to original QP.
CPXERR_PRESLV_START_LP 1112 Not enough memory to build start for original LP.
CPXERR_PRESLV_TIME_LIM 1123 Time limit exceeded during presolve.
CPXERR_PRESLV_UNBD 1118 Presolve determines problem is unbounded.
CPXERR_PRESLV_UNCRUSHFORM 1120 Can't uncrush solution form.
CPXERR_PRIIND 1257 Incorrect usage of pricing indicator.
CPXERR_PRM_DATA 1660 Line %d: Not enough entries.
CPXERR_PRM_HEADER 1661 Line %d: Missing or invalid header.
CPXERR_PTHREAD_CREATE 3603 Could not create thread.
CPXERR_PTHREAD_MUTEX_INIT 3601 Could not initialize mutex.
CPXERR_Q_DIVISOR 1619 Line %d: Missing or incorrect divisor for Q terms.
CPXERR_Q_DUP_ENTRY 5011 Duplicate entry for pair '%s' and '%s'.
CPXERR_Q_NOT_INDEF 5014 Q is not indefinite.
CPXERR_Q_NOT_POS_DEF 5002 Q in '%s' is not positive semi-definite.
CPXERR_Q_NOT_SYMMETRIC 5012 Q is not symmetric.
CPXERR_QCP_SENSE 6002 Illegal quadratic constraint sense.
CPXERR_QCP_SENSE_FILE 1437 Line %d: Illegal quadratic constraint sense.
CPXERR_QUAD_EXP_NOT_2 1613 Line %d: Quadratic exponent must be 2.
CPXERR_QUAD_IN_ROW 1605 Line %d: Illegal quadratic term in a constraint.
CPXERR_RANGE_SECTION_ORDER 1474 Line %d: 'RANGES' section out of order.
CPXERR_RESTRICTED_VERSION 1016 Promotional version. Problem size limits exceeded.
CPXERR_RHS_IN_OBJ 1603 Line %d: RHS sense in objective.
CPXERR_RIM_REPEATS 1447 Line %d: %s '%s' repeats.
CPXERR_RIM_ROW_REPEATS 1444 %s '%s' has repeated row '%s'.
CPXERR_RIMNZ_REPEATS 1479 Line %d: %s %s repeats.
CPXERR_ROW_INDEX_RANGE 1203 Row index %d out of range.
CPXERR_ROW_REPEAT_PRINT 1477 %d Row repeats messages not printed.
CPXERR_ROW_REPEATS 1445 Row '%s' repeats.
CPXERR_ROW_UNKNOWN 1448 Line %d: '%s' is not a row name.
CPXERR_SAV_FILE_DATA 1561 Not enough data in SAV file.
CPXERR_SAV_FILE_WRITE 1562 Unable to write SAV file to disk.
CPXERR_SBASE_ILLEGAL 1554 Superbases are not allowed.
CPXERR_SBASE_INCOMPAT 1255 Incompatible with superbasis.
CPXERR_SINGULAR 1256 Basis singular.
CPXERR_STR_PARAM_TOO_LONG 1026 String parameter is too long.
CPXERR_SUBPROB_SOLVE 3019 Failure to solve MIP subproblem.
CPXERR_THREAD_FAILED 1234 Creation of parallel thread failed.
CPXERR_TILIM_CONDITION_NO 1268 Time limit reached in computing condition number.
CPXERR_TILIM_STRONGBRANCH 1266 Time limit reached in strong branching.
CPXERR_TOO_MANY_COEFFS 1433 Too many coefficients.
CPXERR_TOO_MANY_COLS 1432 Too many columns.
CPXERR_TOO_MANY_RIMNZ 1485 Too many rim nonzeros.
CPXERR_TOO_MANY_RIMS 1484 Too many rim vectors.
CPXERR_TOO_MANY_ROWS 1431 Too many rows.
CPXERR_TOO_MANY_THREADS 1020 Thread limit exceeded.
CPXERR_TREE_MEMORY_LIMIT 3413 Tree memory limit exceeded.
CPXERR_UNIQUE_WEIGHTS 3010 Set does not have unique weights.
CPXERR_UNSUPPORTED_CONSTRAINT_TYPE 1212 Unsupported constraint type was used.
CPXERR_UP_BOUND_REPEATS 1458 Line %d: Repeated upper bound.
CPXERR_WORK_FILE_OPEN 1801 Could not open temporary file.
CPXERR_WORK_FILE_READ 1802 Failure on temporary file read.
CPXERR_WORK_FILE_WRITE 1803 Failure on temporary file write.
CPXERR_XMLPARSE 1425 XML parsing error at line %d: %s.

Each error code, such as 1616, is associated with a symbolic constant, such as CPXERR_NO_ID, and a short message string, such as Line %d: Expected identifier, found '%c'.

In the short message strings, the following symbols occur:

%d means a number, such as a line number

%s means a string, such as a file name, variable name, or other

%c means a character, such as a letter or arithmetic operator

Click the symbolic constant in the table to go to a longer explanation of an error code.