NO FRAMES

CPXNETgetpi

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

The routine CPXNETgetpi is used to access dual values for a range of nodes in the network stored in a network problem object.

For this function to succeed, a solution must exist for the problem object.

Example

 status = CPXNETgetpi (env, net, pi, 10, 20);

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.

pi

Array in which to write solution dual values for requested nodes. If NULL is passed, no data is returned. Otherwise, pi must point to an array of size at least (end-begin+1).

begin

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

end

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

Returns:

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