This provides an interface to the RELAX_IV minimum cost flow solver. It provides input santization and returns the flow solution.

## Usage

RELAX_IV(startnodes, endnodes, arccosts, arccapacity, supply)

## Arguments

startnodes

A vector of starting nodes.

endnodes

A vector of ending nodes.

arccosts

A vector of arc costs.

arccapacity

A vector of arc capacities.

supply

A vector of supplies.

## Value

The flow solution.

.RELAX_IV for a more advanced interface and set of returned results.

## Examples

data(relaxexample)
RELAX_IV(relaxexample$startnodes, relaxexample$endnodes,
relaxexample$arccosts, relaxexample$arccapacity,
relaxexample\$nodedemand)
#>   [1]  0  0  1  0  0  0  0  0  0  0  1  0  0  0  0  0  0  0  0  0  0  1  0  0  0
#>  [26]  0  0  0  0  0  0  0  0  0  0  0  0  1  0  0  0  0  0  0  0  0  0  1  0  0
#>  [51]  0  0  0  1  0  0  0  0  0  0  0  1  0  0  0  0  0  0  0  0  0  0  0  0  0
#>  [76]  0  0  1  0  0  0  0  1  0  0  0  0  0  0  0  0  0  1  0  0  0  0  0  0  0
#> [101]  0  0  0  0  1  0  0  0  0  0  0  0  1  0  0  0  0  0  0  0  1  0  0  0  0
#> [126]  0  0  0  0  0  0  0  0  0  0  0  1  0  0  0  0  1  0  0  0  0  0  0  0  0
#> [151]  0  1  0  0  0  0  0  0  0  0  0  0  0  0  1  0  0  0  0  0  0  0  0  0  0
#> [176]  0  1  0  0  0  0  0  0  0  0  1  0  0  0  0  0  0  0  0  0  0  0  0  1  0
#> [201]  0  0  0  0  0  0  0  0  0  1  0  0  0  0  0  0  0  1  0  0 18 20 21 18 21
#> [226] 18 21 20 21 20  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0  0
#> [251]  0  0  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1  1