Overview | Group | Tree | Graph | Index | Concepts |
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);
env | A pointer to the CPLEX environment as returned by |
net | A pointer to a CPLEX network problem object as returned by |
dj | Array in which to write requested reduced costs. If NULL is passed, no reduced cost values are returned. Otherwise, |
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); |