Description
The function CPXNETgetub() is used to access the upper capacity bounds for a range of arcs of the network stored in a CPLEX network problem object.Return Value
If the operation is successful, CPXNETgetub() returns the value 0; if not, it returns a nonzero value to indicate an error.Synopsis
int CPXNETgetub (CPXENVptr env,
CPXNETptr net,
double *up,
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 *upArray in which to write the upper bound on the flow for the requested arcs. If NULL is passed, no upper bounds will be retrieved. Otherwise the size of the array must be(
end-begin+1).
int beginIndex of the first arc for which upper bounds are obtained.
int endIndex of the last arc for which upper bounds are obtained.
status = CPXNETgetub (env, net, up, 0, cur_narcs);