|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object be.ac.ulg.montefiore.run.totem.repository.genericheuristics.simulatedAnnealing.facade.SimulatedAnnealing
public class SimulatedAnnealing
Implementation of the Simulated Algorithm
Creation date: 18 nov. 2004 11:56:14
Field Summary | |
---|---|
boolean |
minimise
|
protected SANeighbourhood |
neighbourhood
|
protected SAParameter |
param
|
protected SAReportGenerator |
reportGenerator
|
protected ObjectiveFunction |
scf
|
Constructor Summary | |
---|---|
SimulatedAnnealing(SANeighbourhood neighbourhood,
SAInitialSolutionGenerator solutionGenerator,
ObjectiveFunction scf)
This constructor build a simulated annealing instance with the specified parameters. |
|
SimulatedAnnealing(SANeighbourhood neighbourhood,
SAInitialSolutionGenerator solutionGenerator,
ObjectiveFunction scf,
SAParameter param)
This constructor build a simulated annealing instance with the specified parameters. |
|
SimulatedAnnealing(SANeighbourhood neighbourhood,
SAInitialSolutionGenerator solutionGenerator,
ObjectiveFunction scf,
SAParameter param,
SAReportGenerator reportGenerator)
This constructor build a simulated annealing instance with the specified parameters. |
|
SimulatedAnnealing(SANeighbourhood neighbourhood,
SAParameter param)
This constructor build a simulated annealing instance without solution generator. |
|
SimulatedAnnealing(SANeighbourhood neighbourhood,
SAParameter param,
SAReportGenerator reportGenerator)
|
Method Summary | |
---|---|
protected boolean |
compare(double a,
double b)
If minimise == true, returns true if a < b and false otherwise. |
int |
proposeL()
|
float |
proposeT0(float T0,
int plateauSize)
|
float |
proposeT0(int plateauSize)
|
SASolution |
solve()
This method will return the solution of the simulated Annealing MetaHeuristic. |
SASolution |
solve(SAParameter param)
|
SASolution |
solve(SASolution initialSolution)
This method will return the solution of the simulated Annealing MetaHeuristic. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected SANeighbourhood neighbourhood
protected ObjectiveFunction scf
protected SAParameter param
protected SAReportGenerator reportGenerator
public boolean minimise
Constructor Detail |
---|
public SimulatedAnnealing(SANeighbourhood neighbourhood, SAInitialSolutionGenerator solutionGenerator, ObjectiveFunction scf, SAParameter param, SAReportGenerator reportGenerator)
neighbourhood
- : the neighbourhood functionsolutionGenerator
- : the solution generatorparam
- : the parameters of the Simulated Annealing (T0, alpha, etc)public SimulatedAnnealing(SANeighbourhood neighbourhood, SAParameter param, SAReportGenerator reportGenerator)
public SimulatedAnnealing(SANeighbourhood neighbourhood, SAInitialSolutionGenerator solutionGenerator, ObjectiveFunction scf, SAParameter param)
neighbourhood
- : the neighbourhood functionsolutionGenerator
- : the solution generatorparam
- : the parameters of the Simulated Annealing (T0, alpha, etc)public SimulatedAnnealing(SANeighbourhood neighbourhood, SAInitialSolutionGenerator solutionGenerator, ObjectiveFunction scf)
neighbourhood
- : the neighbourhood functionsolutionGenerator
- : the solution generatorpublic SimulatedAnnealing(SANeighbourhood neighbourhood, SAParameter param)
neighbourhood
- : the neighbourhood functionparam
- : the parameters of the Simulated Annealing (T0, alpha, etc)Method Detail |
---|
public SASolution solve() throws java.lang.Exception
java.lang.Exception
public SASolution solve(SAParameter param) throws java.lang.Exception
java.lang.Exception
public float proposeT0(int plateauSize) throws java.lang.IllegalArgumentException, java.lang.Exception
java.lang.IllegalArgumentException
java.lang.Exception
public float proposeT0(float T0, int plateauSize) throws java.lang.IllegalArgumentException, java.lang.Exception
java.lang.IllegalArgumentException
java.lang.Exception
public int proposeL()
public SASolution solve(SASolution initialSolution) throws java.lang.Exception
java.lang.Exception
protected boolean compare(double a, double b)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |