Class StochasticLocalSearch
java.lang.Object
org.tweetyproject.math.opt.solver.Solver
org.tweetyproject.math.opt.solver.CombinatoricsSolver
org.tweetyproject.math.opt.solver.StochasticLocalSearch
local search
- Author:
- Sebastian Franke
-
Constructor Summary
ConstructorsConstructorDescriptionStochasticLocalSearch(int maxIteration, int maxStepsWithNoImprove, double chanceForRandomStep) -
Method Summary
Modifier and TypeMethodDescriptionfindbestNeighbor(ArrayList<ArrayList<ElementOfCombinatoricsProb>> neighbors)findrandomNeighbor(ArrayList<ArrayList<ElementOfCombinatoricsProb>> neighbors)solve(CombinatoricsProblem prob)Methods inherited from class org.tweetyproject.math.opt.solver.CombinatoricsSolver
solveMethods inherited from class org.tweetyproject.math.opt.solver.Solver
getDefaultGeneralSolver, getDefaultIntegerLinearSolver, getDefaultLinearSolver, hasDefaultGeneralSolver, hasDefaultIntegerLinearSolver, hasDefaultLinearSolver, isInstalled, setDefaultGeneralSolver, setDefaultIntegerLinearSolver, setDefaultLinearSolver
-
Constructor Details
-
StochasticLocalSearch
public StochasticLocalSearch(int maxIteration, int maxStepsWithNoImprove, double chanceForRandomStep)
-
-
Method Details
-
findbestNeighbor
public ArrayList<ElementOfCombinatoricsProb> findbestNeighbor(ArrayList<ArrayList<ElementOfCombinatoricsProb>> neighbors) -
findrandomNeighbor
public ArrayList<ElementOfCombinatoricsProb> findrandomNeighbor(ArrayList<ArrayList<ElementOfCombinatoricsProb>> neighbors) -
solve
-