CPXXNETgetobjsen and CPXNETgetobjsen
The routine CPXXNETgetobjsen/CPXNETgetobjsen returns the sense of the
objective function (i.
int CPXXNETgetobjsen( CPXCENVptr env, CPXCNETptr net )
int CPXNETgetobjsen( CPXCENVptr env, CPXCNETptr net )
Description
The routine CPXXNETgetobjsen/CPXNETgetobjsen returns the sense of the
objective function (i.e., maximization or minimization) of a network
problem object.
Arguments
- env
-
A pointer to the CPLEX environment as returned by
CPXXopenCPLEX/CPXopenCPLEX. - net
-
A pointer to a CPLEX network problem object as returned by
CPXXNETcreateprob/CPXNETcreateprob.
Return
The valueCPX_MAX (-1) is returned for a maximization problem; the value CPX_MIN (1) is returned for a minimization problem. In case of an error, the value zero is returned.
Example
objsen = CPXNETgetobjsen (env, net);