CPXXgetobjsen and CPXgetobjsen
The routine CPXXgetobjsen/CPXgetobjsen accesses whether the
objective function sense of a CPLEX problem object is maximization or
minimization.
int CPXXgetobjsen( CPXCENVptr env, CPXCLPptr lp )
int CPXgetobjsen( CPXCENVptr env, CPXCLPptr lp )
Description
The routine CPXXgetobjsen/CPXgetobjsen accesses whether the
objective function sense of a CPLEX problem object is maximization or
minimization.
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
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.Example
cur_objsen = CPXgetobjsen (env, lp);