evaluate_primal: Compute value of primal problem given flows and arc costs

View source: R/complementarySlackness.R

evaluate_primalR Documentation

Compute value of primal problem given flows and arc costs

Description

Compute value of primal problem given flows and arc costs

Usage

evaluate_primal(distances, solution)

Arguments

distances

An InfinitySparseMatrix giving distances

solution

A MCFSolutions object

Value

The value of the primal problem, i.e. sum of products of distances with flow along arcs in solution

Author(s)

Hansen


markmfredrickson/optmatch documentation built on Sept. 11, 2022, 3:40 a.m.