NO FRAMES

CPXNETgetobj

int CPXPUBLIC CPXNETgetobj(CPXCENVptr env, CPXCNETptr net, double * obj, int begin, int end)
Definition file: cplex.h
Include files: cplex.h

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

Example

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

Parameters:

env

A pointer to the CPLEX environment as returned by CPXopenCPLEX.

net

A pointer to a CPLEX network problem object as returned by CPXNETcreateprob.

obj

Array in which to write the objective values for the requested range of arcs. If NULL is passed, no objective values are retrieved. Otherwise, obj must point to an array of size at least (end-begin+1).

begin

Index of the first arc for which the objective value is to be obtained.

end

Index of the last arc for which the objective value is to be obtained.

Returns:

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