| Overview | Group | Tree | Graph | Index | Concepts | 
The routine CPXchgobjsen is used to change the sense of
 the optimization for a problem, to maximization or minimization.
CPX_MIN | (1) | new sense is minimize | 
CPX_MAX | (-1) | new sense is maximize | 
Example
CPXchgobjsen (env, lp, CPX_MAX);
| env | A pointer to the CPLEX environment as returned by   | 
| lp | A pointer to a CPLEX problem object as returned by   | 
| maxormin | An integer that indicates the new sense of the problem.  |