NO FRAMES

CPXNETgetsupply

int CPXPUBLIC CPXNETgetsupply(CPXCENVptr env, CPXCNETptr net, double * supply, int begin, int end)
Definition file: cplex.h
Include files: cplex.h

The routine CPXNETgetsupply is used to obtain supply values for a range of nodes in the network stored in a CPLEX network problem object.

Example

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

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.

supply

Place where requested supply values are copied. If NULL is passed, no supply values are copied. Otherwise, the array must be of length at least (end-begin+1).

begin

Index of the first node for which a supply value is to be obtained.

end

Index of the last node for which a supply value is to be obtained.

Returns:

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