NO FRAMES

CPXgetprobtype

int CPXPUBLIC CPXgetprobtype(CPXCENVptr env, CPXCLPptr lp)
Definition file: cplex.h
Include files: cplex.h

The routine CPXgetprobtype is used to access the problem type that is currently stored in a CPLEX problem object.

Example

 probtype = CPXgetprobtype (env, lp);
 
Return values
ValueSymbolic ConstantMeaning
-1 Error: no problem or environment.
0CPXPROB_LPLinear program; no quadratic data or ctype information stored.
1CPXPROB_MILPProblem with ctype information.
3CPXPROB_FIXEDMILPProblem with ctype information, integer variables fixed.
5CPXPROB_QPProblem with quadratic data stored.
7CPXPROB_MIQPProblem with quadratic data and ctype information.
8CPXPROB_FIXEDMIQPProblem with quadratic data and ctype information, integer variables fixed.
10CPXPROB_QCPProblem with quadratic constraints.
11CPXPROB_MIQCPProblem with quadratic constraints and ctype information.

See Also:

Parameters:

env

A pointer to the CPLEX environment as returned by CPXopenCPLEX.

lp

A pointer to a CPLEX problem object as returned by CPXcreateprob.

Returns:

The values returned by CPXgetprobtype appear in the table.