Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.drools.planner.core.localsearch.decider.acceptor.simulatedannealing
Class LegacySimulatedAnnealingAcceptor

    java.lang.Object
      org.drools.planner.core.localsearch.decider.acceptor.AbstractAcceptor
          org.drools.planner.core.localsearch.decider.acceptor.simulatedannealing.LegacySimulatedAnnealingAcceptor

All Implemented Interfaces:
  Acceptor, LocalSearchSolverLifecycleListener

    public class LegacySimulatedAnnealingAcceptor

extends AbstractAcceptor

TODO this will be removed once the time gradient based `SimulatedAnnealingAcceptor` is always better.

Field Summary
`protected double` | `startingTemperature`
`protected double` | `temperature`
`protected double` | `temperatureSurvival`

Fields inherited from class org.drools.planner.core.localsearch.decider.acceptor.AbstractAcceptor
`logger`

Constructor Summary
`LegacySimulatedAnnealingAcceptor()`

Method Summary
`double` | `calculateAcceptChance(MoveScope moveScope)` TODO the use for an acceptChance between 0.0 and 1.0 is unproven.
`void` | `setStartingTemperature(double startingTemperature)`
`void` | `setTemperatureSurvival(double temperatureSurvival)`
`void` | `solvingStarted(LocalSearchSolverScope localSearchSolverScope)`
`void` | `stepTaken(LocalSearchStepScope localSearchStepScope)`

Methods inherited from class org.drools.planner.core.localsearch.decider.acceptor.AbstractAcceptor
`beforeDeciding, solvingEnded, stepDecided`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Field Detail

### startingTemperature

    protected double startingTemperature

### temperatureSurvival

    protected double temperatureSurvival

### temperature

    protected double temperature

Constructor Detail

### LegacySimulatedAnnealingAcceptor

    public LegacySimulatedAnnealingAcceptor()

Method Detail

### setStartingTemperature

    public void setStartingTemperature(double startingTemperature)

### setTemperatureSurvival

    public void setTemperatureSurvival(double temperatureSurvival)

### solvingStarted

    public void solvingStarted(LocalSearchSolverScope localSearchSolverScope)

  Specified by:
    `solvingStarted` in interface `LocalSearchSolverLifecycleListener`
  Overrides:
    `solvingStarted` in class `AbstractAcceptor`

### calculateAcceptChance

    public double calculateAcceptChance(MoveScope moveScope)

  Description copied from interface: `Acceptor`
  TODO the use for an acceptChance between 0.0 and 1.0 is unproven. A boolean instead of a double is sufficient?

  Parameters:
    `moveScope` - not null
  Returns:
    never negative; if rejected 0.0; if accepted higher than 0.0 (usually 1.0)

### stepTaken

    public void stepTaken(LocalSearchStepScope localSearchStepScope)

  Specified by:
    `stepTaken` in interface `LocalSearchSolverLifecycleListener`
  Overrides:
    `stepTaken` in class `AbstractAcceptor`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2001-2011 JBoss Inc.. All Rights Reserved.