Previous Page: CPXNETgetub First PageNext Page: CPXNETprimopt

CPXNETgetx


Description

The function CPXNETgetx() is used to access solution values or, equivalently, flow values for a range of arcs of the network stored in a CPLEX network problem object.

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

Return Value

If the operation is successful, CPXNETgetx() returns the value 0; if not, it returns a nonzero value to indicate an error.

Synopsis

int CPXNETgetx (CPXENVptr env,
                CPXNETptr net,
                double *x,
                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 *x
Array in which to write solution (or flow) values for requested arcs. If NULL is passed, no solution vector will be returned. Otherwise x must point to an array of a size that is at least (end-begin+1).

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

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

Example

status = CPXNETgetx (env, net, x, 10, 20);

Previous Page: CPXNETgetub First PageNext Page: CPXNETprimopt