Description
The function CPXNETgetsupply() is used to obtain supply values for a range of nodes in the network stored in a CPLEX network problem object.Return Value
If the operation is successful, CPXNETgetsupply() returns the value 0; if not, it returns a nonzero value to indicate an error.Synopsis
int CPXNETgetsupply (CPXENVptr env,
CPXNETptr net,
double *supply,
int begin,
int end);
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().
double *supplyPlace where requested supply values are copied. If NULL is passed, no supply values will be copied. Otherwise the length of the array must be at least (
end-begin+1).
int beginIndex of the first node to get data for.
int endIndex of the last node to get data for.
status = CPXNETgetsupply (env, net, supply,
0, CPXNETgetnumnodes (env, net) - 1);