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