CPXchgobjsen


Description

The routine CPXchgobjsen() is used to change the sense of the optimization for a problem, to maximization or minimization.

Return Value

This routine does not return a result.

Synopsis

  void CPXchgobjsen (CPXCENVptr env,
                     CPXLPptr lp,
                     int maxormin);

Arguments

CPXCENVptr env

The pointer to the CPLEX environment as returned by CPXopenCPLEX().

CPXLPptr lp

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

int maxormin

An integer that indicates the new sense of the problem.

CPX_MIN 
(1
new sense is minimize 
CPX_MAX 
(-1
new sense is maximize 

Example

  CPXchgobjsen (env, lp, CPX_MAX);


Previous Page: CPXchgobj Return to Top Next Page: CPXchgprobname