NO FRAMES

CPXNETchgobjsen

public int CPXNETchgobjsen(CPXCENVptr env, CPXNETptr net, int maxormin)
Definition file: cplex.h

The routine CPXNETchgobjsen is used to change the sense of the network problem to a minimization or maximization problem.

Any solution information stored in the problem object is lost.

Changed optimization sense in a network problem
CPX_MAXFor a maximization problem.
CPX_MINFor a minimization problem.

Example

 status = CPXNETchgobjsen (env, net, CPX_MAX);

Parameters:

env

A pointer to the CPLEX environment as returned by CPXopenCPLEX.

net

A pointer to a CPLEX network problem object as returned by CPXNETcreateprob.

maxormin

New optimization sense for the network problem. The possible values are in the table.

Returns:

The routine returns zero on success and nonzero if an error occurs.