V
- the graph vertex typeE
- the graph edge typepublic static class MinimumCostFlowProblem.MinimumCostFlowProblemImpl<V,E> extends Object implements MinimumCostFlowProblem<V,E>
MinimumCostFlowProblem.MinimumCostFlowProblemImpl<V,E>
Constructor and Description |
---|
MinimumCostFlowProblemImpl(Graph<V,E> graph,
Function<V,Integer> supplyMap,
Function<E,Integer> arcCapacityUpperBounds)
Constructs a new minimum cost flow problem without arc capacity lower bounds.
|
MinimumCostFlowProblemImpl(Graph<V,E> graph,
Function<V,Integer> nodeSupplies,
Function<E,Integer> arcCapacityUpperBounds,
Function<E,Integer> arcCapacityLowerBounds)
Constructs a new minimum cost flow problem
|
Modifier and Type | Method and Description |
---|---|
Function<E,Integer> |
getArcCapacityLowerBounds()
Returns a function which specifies the minimum capacity of an arc.
|
Function<E,Integer> |
getArcCapacityUpperBounds()
Returns a function which specifies the maximum capacity of an arc.
|
Graph<V,E> |
getGraph()
Returns the flow network
|
Function<V,Integer> |
getNodeSupply()
Returns a function which defines the supply and demand of each node in thet network.
|
public MinimumCostFlowProblemImpl(Graph<V,E> graph, Function<V,Integer> supplyMap, Function<E,Integer> arcCapacityUpperBounds)
graph
- the flow networksupplyMap
- the node demandsarcCapacityUpperBounds
- the arc capacity upper boundspublic MinimumCostFlowProblemImpl(Graph<V,E> graph, Function<V,Integer> nodeSupplies, Function<E,Integer> arcCapacityUpperBounds, Function<E,Integer> arcCapacityLowerBounds)
graph
- the flow networknodeSupplies
- the node demandsarcCapacityUpperBounds
- the arc capacity upper boundsarcCapacityLowerBounds
- the arc capacity lower boundspublic Graph<V,E> getGraph()
getGraph
in interface MinimumCostFlowProblem<V,E>
public Function<V,Integer> getNodeSupply()
getNodeSupply
in interface MinimumCostFlowProblem<V,E>
public Function<E,Integer> getArcCapacityLowerBounds()
getArcCapacityLowerBounds
in interface MinimumCostFlowProblem<V,E>
public Function<E,Integer> getArcCapacityUpperBounds()
getArcCapacityUpperBounds
in interface MinimumCostFlowProblem<V,E>
Copyright © 2019. All rights reserved.