Previous Page: CPXNETgetstat First PageNext Page: CPXNETgetub

CPXNETgetsupply


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);

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().

double *supply
Place 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 begin
Index of the first node to get data for.

int end
Index of the last node to get data for.

Example

status = CPXNETgetsupply (env, net, supply,
                          0, CPXNETgetnumnodes (env, net) - 1);

Previous Page: CPXNETgetstat First PageNext Page: CPXNETgetub