mascoptDev.algos.networks
Class ApproxMinCostFlowStraight
java.lang.Object
|
+--mascoptDev.algos.networks.ApproxMinCostFlow
|
+--mascoptDev.algos.networks.ApproxMinCostFlowStraight
- public class ApproxMinCostFlowStraight
- extends ApproxMinCostFlow
Provides an algorithm of approximation of fractionnal MCF by "Lagrangienne" relaxation.
TIME IS OUT OF BOUND on examples of file/nfsnet.mgl and file/americain-mieux.mgl
Initialize the flow with the shortest paths (Bellman) in terms of the congestion cost for all requests, no constraint of capacity.
while the capacity constraints isn't satisfaied,
divert the flow between the most loaded paths and the least loaded paths.
Use the congestion cost(Arc) in 4 straights, to use other cost see ApproxMinCostFlowStages, ApproxMinCostFlow.
Fields inherited from class mascoptDev.algos.networks.ApproxMinCostFlow |
CAPACITY_STRING_VALUE, congestion, CONGESTION_MAX, costCongestion, EPSILON, EPSILON_END, flowAllocated, INDEX, nbArc, nbRequest, REQUEST_SIZE, W |
Method Summary |
void |
costCongestion(Arc a)
Calculate the cost of the congestion,
with the 3 fonctions according to the value of the congestion of cable a. |
Methods inherited from class mascoptDev.algos.networks.ApproxMinCostFlow |
addFlow, deCongest, deCongestFlow, getCongestion, getFlow, getFlowAllocated, printFlow, setCongestion, setFlow, setFlowAllocated, writeSolution |
ApproxMinCostFlowStraight
public ApproxMinCostFlowStraight(WDMNetwork n)
costCongestion
public void costCongestion(Arc a)
- Calculate the cost of the congestion,
with the 3 fonctions according to the value of the congestion of cable a.
- Parameters:
a
- the Arc
representing a cable of the problem.