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.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);
CPXENVptr envThe pointer to the CPLEX environment as returned by one of the
CPXopenCPLEX() routines.
CPXNETptr netA pointer to a CPLEX network problem object as returned by
CPXNETcreateprob().
double *xArray 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 beginIndex of the first arc for which a solution (or flow) value is obtained.
int endIndex of the last arc for which a solution (or flow) value is obtained.
status = CPXNETgetx (env, net, x, 10, 20);