Previous Page: CPXNETchgobjsen First PageNext Page: CPXNETcopybase

CPXNETchgsupply


Description

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

Any solution information that may be stored in the CPLEX network problem object will be lost.

Return Value

If the operation is successful, CPXNETchgsupply() returns the value 0; if not, it returns a nonzero value to indicate an error.

Synopsis

int CPXNETchgsupply (CPXENVptr env,
                     CPXNETptr net,
                     int cnt,
                     int *index,
                     double *supply);

Arguments


CPXENVptr env
The pointer to the CPLEX environment as returned by one of the CPXopenCPLEX() routines.

CPXNETptr net
A pointer to a CPLEX network problem object as returned by CPXNETcreateprob().

int cnt
Number of nodes for which the objective values are to be changed.

int *index
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, narcs-1].

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

Example

status = CPXNETchgsupply (env, net, cnt, index, newsupply);

Previous Page: CPXNETchgobjsen First PageNext Page: CPXNETcopybase