NO FRAMES

CPXNETgetx

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

The routine CPXNETgetx is used to access solution values or, equivalently, flow values for a range of arcs stored in a network problem object.

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

Example

 status = CPXNETgetx (env, net, x, 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.

x

Array in which to write solution (or flow) values for requested arcs. If NULL is passed, no solution vector is returned. Otherwise, x must point to an array of size at least (end-begin+1).

begin

Index of the first arc for which a solution (or flow) value is to be obtained.

end

Index of the last arc for which a solution (or flow) value is to be obtained.

Returns:

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