Class SimulatedAnnealing
java.lang.Object
org.tweetyproject.math.opt.solver.Solver
org.tweetyproject.math.opt.solver.CombinatoricsSolver
org.tweetyproject.math.opt.solver.SimulatedAnnealing
This class implements the simulated annealing algorithm for combinatrics problems
It is natively implemented
- Author:
- Sebastian Franke
-
Constructor Summary
ConstructorDescriptionSimulatedAnnealing
(double startTemp, double decreasePerIt, int maxStepsWithNoImprove) Constructor -
Method Summary
Methods inherited from class org.tweetyproject.math.opt.solver.CombinatoricsSolver
solve
Methods inherited from class org.tweetyproject.math.opt.solver.Solver
getDefaultGeneralSolver, getDefaultIntegerLinearSolver, getDefaultLinearSolver, hasDefaultGeneralSolver, hasDefaultIntegerLinearSolver, hasDefaultLinearSolver, isInstalled, setDefaultGeneralSolver, setDefaultIntegerLinearSolver, setDefaultLinearSolver
-
Constructor Details
-
SimulatedAnnealing
public SimulatedAnnealing(double startTemp, double decreasePerIt, int maxStepsWithNoImprove) Constructor- Parameters:
startTemp
- startTempdecreasePerIt
- decreasePerItmaxStepsWithNoImprove
- maxStepsWithNoImprove
-
-
Method Details
-
solve
- Parameters:
prob
- : the problem- Returns:
- the best solution encountered
-