CPXXgetprobtype and CPXgetprobtype

The routine CPXXgetprobtype/CPXgetprobtype accesses the problem type that is currently stored in a CPLEX problem object.

int  CPXXgetprobtype( CPXCENVptr env, CPXCLPptr lp )

int  CPXgetprobtype( CPXCENVptr env, CPXCLPptr lp )

Description

The routine CPXXgetprobtype/CPXgetprobtype accesses the problem type that is currently stored in a CPLEX problem object.

Arguments

env
A pointer to the CPLEX environment as returned by CPXXopenCPLEX/CPXopenCPLEX.
lp
A pointer to a CPLEX problem object as returned by CPXXcreateprob/CPXcreateprob.

Return

The values returned by CPXXgetprobtype/CPXgetprobtype appear in the table.

Example


probtype = CPXgetprobtype (env, lp);
Table 1. Return values
Value Symbolic Constant Meaning
-1 - Error: no problem or environment.
0 CPXPROB_LP Linear program; no quadratic data or ctype information stored.
1 CPXPROB_MILP Problem with ctype information.
3 CPXPROB_FIXEDMILP Problem with ctype information, integer variables fixed.
5 CPXPROB_QP Problem with quadratic data stored.
7 CPXPROB_MIQP Problem with quadratic data and ctype information.
8 CPXPROB_FIXEDMIQP Problem with quadratic data and ctype information, integer variables fixed.
10 CPXPROB_QCP Problem with quadratic constraints.
11 CPXPROB_MIQCP Problem with quadratic constraints and ctype information.