Class AKPSolverArraySimpleImprov
- java.lang.Object
-
- org.processmining.earthmoversstochasticconformancechecking.reallocationmatrix.epsa.AKPSolverArraySimpleImprov
-
public class AKPSolverArraySimpleImprov extends java.lang.ObjectA class which performs the AKP algorithm on an array representation of the tree. Internally the tree (basic solution, not necessary feasible) is represented using several arrays. In each step a complete comparison between surplus sources and deficit targets is made.Papers:
- Charalampos Papamanthou, Konstantinos Paparrizos, and Nikolaos Samaras. 2004. Computational experience with exterior point algorithms for the transportation problem. Appl. Math. Comput. 158, 2 (November 2004), 459-475. (AKP algorithm)
- M.S. Bazaraa, J.J. Jarvis, and H.D. Sherali. Linear Programming and Network Flows. Wiley, 2010, 482-488. (Tree)
- Author:
- brockhoff
-
-
Constructor Summary
Constructors Constructor Description AKPSolverArraySimpleImprov(StructInitEPSA inst)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidfillMatrix(ReallocationMatrix relocationMatrix)int[]getNextEntering()Gets the next entering arc.voidinitInSurTreeArray()voidinitMinRedCostMemory()Gets the next entering arc.booleanisExact()booleannextIteration()voidprintFinalFlow()doublesolve(org.processmining.framework.plugin.ProMCanceller canceller)Runs the simplex type algorithm.voidupdateMinRedSrc(int tar)voidupdateMove2Deficit(int root)voidupdateMove2Surplus(int root)
-
-
-
Constructor Detail
-
AKPSolverArraySimpleImprov
public AKPSolverArraySimpleImprov(StructInitEPSA inst)
-
-
Method Detail
-
solve
public double solve(org.processmining.framework.plugin.ProMCanceller canceller)
Runs the simplex type algorithm.
-
nextIteration
public boolean nextIteration()
-
getNextEntering
public int[] getNextEntering()
Gets the next entering arc.- Returns:
-
updateMove2Surplus
public void updateMove2Surplus(int root)
-
updateMove2Deficit
public void updateMove2Deficit(int root)
-
initInSurTreeArray
public void initInSurTreeArray()
-
initMinRedCostMemory
public void initMinRedCostMemory()
Gets the next entering arc.
-
updateMinRedSrc
public void updateMinRedSrc(int tar)
-
isExact
public boolean isExact()
-
printFinalFlow
public void printFinalFlow()
-
fillMatrix
public void fillMatrix(ReallocationMatrix relocationMatrix)
-
-