Previous Page: CPXNETgetnumnodes First PageNext Page: CPXNETgetobjsen

CPXNETgetobj


Description

The function CPXNETgetobj() is used to access the objective function values for a range of arcs in the network stored in a CPLEX network problem object.

Return Value

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

Synopsis

int CPXNETgetobj (CPXENVptr env,
                  CPXNETptr net,
                  double *obj,
                  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 *obj
Array in which to write the objective values for flow through the requested arcs. If NULL is passed, no objective values will be retrieved. Otherwise the size of the array must be (end-begin+1).

int begin
Index of the first arc for which objective values are obtained.

int end
Index of the last arc for which objective values are obtained.

Example

status = CPXNETgetobj (env, net, obj, 0, cur_narcs);

Previous Page: CPXNETgetnumnodes First PageNext Page: CPXNETgetobjsen