View source: R/complementarySlackness.R
evaluate_primal | R Documentation |
Compute value of primal problem given flows and arc costs
evaluate_primal(distances, solution)
distances |
An InfinitySparseMatrix giving distances |
solution |
A MCFSolutions object |
The value of the primal problem, i.e. sum of
products of distances
with flow along arcs in solution
Hansen
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.