Previous Page: CPXgetprobnameFirst PageNext Page: CPXgetqpcoef

CPXgetprobtype


Usage

(Mixed Integer or Barrier Users Only)

Description

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

Return Value

The values returned by CPXgetprobtype() are:

Value  
Symbolic Constant  
Meaning  
-1  
 
Error: no problem or environment  
0  
CPXPROB_LP  
Problem is LP  
1  
CPXPROB_MIP  
Problem has ctype information  
2  
CPXPROB_RELAXED  
Problem has ctype information, is LP relaxation  
3  
CPXPROB_FIXED  
Problem has ctype information, is fixed problem  
5  
CPXPROB_QP  
Problem has quadratic data stored  
6  
CPXPROB_ZEROEDQP  
Problem has quadratic data stored, is relaxed  

Synopsis

int CPXgetprobtype (CPXENVptr env,
                    CPXLPptr lp);

Arguments


CPXENVptr env
The pointer to the CPLEX environment as returned by one of the CPXopenCPLEX routines.

CPXLPptr lp
A pointer to a CPLEX LP problem object as returned by CPXcreateprob().

Example

probtype = CPXgetprobtype (env, lp);

See Also

CPXchgprobtype()

Previous Page: CPXgetprobnameFirst PageNext Page: CPXgetqpcoef