NO FRAMES

CPXgetobjsen

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

The routine CPXgetobjsen is used to access whether the objective function sense of a CPLEX problem object is maximization or minimization.

Example

 cur_objsen = CPXgetobjsen (env, lp);
 

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:

A value of CPX_MIN=1 is returned for minimization and CPX_MAX=-1 is returned for maximization. If the problem object or environment does not exist, a 0 is returned.