NO FRAMES

CPXNETchgsupply

int CPXPUBLIC CPXNETchgsupply(CPXCENVptr env, CPXNETptr net, int cnt, const int * indices, const double * supply)
Definition file: cplex.h
Include files: cplex.h

The routine CPXNETchgsupply is used to change supply values for a set of nodes in the network stored in a network problem object.

Any solution information stored in the problem object is lost.

Example

 status = CPXNETchgsupply (env, net, cnt, indices, supply);

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.

cnt

An integer indicating the number of nodes for which the objective values are to be changed.

indices

An array of indices that indicate the nodes for which the supply values are to be changed. This array must have a length of at least cnt. The indices must be in the range [0, nnodes-1].

supply

An array to contain the new supply values. This array must have a length of at least cnt.

Returns:

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