CPXXNETgetub and CPXNETgetub

The routine CPXXNETgetub/CPXNETgetub is used to access the upper capacity bounds for a range of arcs in the network stored in a network problem object.

int  CPXXNETgetub( CPXCENVptr env, CPXCNETptr net, double * up, CPXDIM begin, CPXDIM end )

int  CPXNETgetub( CPXCENVptr env, CPXCNETptr net, double * up, int begin, int end )

Description

The routine CPXXNETgetub/CPXNETgetub is used to access the upper capacity bounds for a range of arcs in the network stored in a network problem object.

Arguments

env
A pointer to the CPLEX environment as returned by CPXXopenCPLEX/CPXopenCPLEX.
net
A pointer to a CPLEX network problem object as returned by CPXXNETcreateprob/CPXNETcreateprob.
up
Array in which to write the upper bound on the flow for the requested arcs. If NULL is passed, no upper bounds are retrieved. Otherwise, the array must be of size (end-begin+1).
begin
Index of the first arc for which upper bounds are to be obtained.
end
Index of the last arc for which upper bounds are to be obtained.

Return

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

Example


 status = CPXNETgetub (env, net, up, 0, cur_narcs-1);