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.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);
CPXENVptr envThe pointer to the CPLEX environment as returned by one of the
CPXopenCPLEX() routines.
CPXNETptr netA pointer to a CPLEX network problem object as returned by
CPXNETcreateprob().
int cntNumber of nodes for which the objective values are to be changed.
int *indexAn 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 *supplyAn array of the new supply values. This array must have a length of at least
cnt.
status = CPXNETchgsupply (env, net, cnt, index, newsupply);