Class TabuSearch
java.lang.Object
org.tweetyproject.math.opt.solver.Solver
org.tweetyproject.math.opt.solver.CombinatoricsSolver
org.tweetyproject.math.opt.solver.TabuSearch
implements a simple Tabu Search without long term memory
for combinatorics problems
- Author:
- Sebastian Franke
-
Constructor Summary
ConstructorsConstructorDescriptionTabuSearch(int maxIteration, int tabuSize, int maxStepsWithNoImprove) Constructor -
Method Summary
Modifier and TypeMethodDescriptionsolve(CombinatoricsProblem prob) Return the best solution encounteredMethods 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
-
TabuSearch
public TabuSearch(int maxIteration, int tabuSize, int maxStepsWithNoImprove) Constructor- Parameters:
maxIteration- maxIterationtabuSize- tabuSizemaxStepsWithNoImprove- maxStepsWithNoImprove
-
-
Method Details
-
solve
Return the best solution encountered- Parameters:
prob- the problem- Returns:
- the best solution encountered
-