NO FRAMES

CPXNETgetdj

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

The routine CPXNETgetdj is used to access reduced costs for a range of arcs of the network stored in a network problem object.

For this function to succeed, a solution must exist for the problem object. If the solution is not feasible (CPXNETsolninfo returns 0 in argument pfeasind_p), the reduced costs are computed with respect to an objective function that penalizes infeasibilities.

Example

 status = CPXNETgetdj (env, net, dj, 10, 20);

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.

dj

Array in which to write requested reduced costs. If NULL is passed, no reduced cost values are returned. Otherwise, dj must point to an array of size at least (end-begin+1).

begin

Index of the first arc for which a reduced cost value is to be obtained.

end

Index of the last arc for which a reduced cost value is to be obtained.

Example

 status = CPXNETgetdj (env, net, dj, 10, 20);

Returns:

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