Cream version 1.06 Core API Specification

jp.ac.kobe_u.cs.cream
Class SASearch

java.lang.Object
  extended by jp.ac.kobe_u.cs.cream.Solver
      extended by jp.ac.kobe_u.cs.cream.LocalSearch
          extended by jp.ac.kobe_u.cs.cream.SASearch
All Implemented Interfaces:
Runnable

public class SASearch
extends LocalSearch

Simulated Annealing Search. Only useful for the optimization problems containing Serialized constraints in the current implementation. The default exchangeRate value for ParallelSolver is 0.05.

Since:
1.0

Field Summary
 
Fields inherited from class jp.ac.kobe_u.cs.cream.LocalSearch
initialTimeout, iterationTimeout, solver
 
Fields inherited from class jp.ac.kobe_u.cs.cream.Solver
BETTER, DEFAULT, MAXIMIZE, MINIMIZE, NONE
 
Constructor Summary
SASearch(Network network)
           
SASearch(Network network, int option)
           
SASearch(Network network, int option, String name)
           
SASearch(Network network, String name)
           
 
Method Summary
 double getGamma()
          Returns the cooling parameter value gamma.
 double getTemperature()
          Returns the temperature.
 void nextSearch()
          Finds the next solution.
 void setGamma(double gamma)
          Sets the cooling parameter value gamma.
 void setTemperature(double temp)
          Sets the temperature.
 void startSearch()
          Finds the initial solution.
 
Methods inherited from class jp.ac.kobe_u.cs.cream.LocalSearch
endSearch, getCandidate, getExchangeRate, getIterations, run, setCandidate, setExchangeRate, stop
 
Methods inherited from class jp.ac.kobe_u.cs.cream.Solver
clearBest, findAll, findAll, findBest, findBest, findFirst, findFirst, getBestSolution, getBestValue, getCount, getElapsedTime, getID, getMonitor, getOption, getSolution, isAborted, join, resetIDCounter, resume, setMonitor, start, start, start, start, toString, waitNext, waitNext
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SASearch

public SASearch(Network network)

SASearch

public SASearch(Network network,
                int option)

SASearch

public SASearch(Network network,
                String name)

SASearch

public SASearch(Network network,
                int option,
                String name)
Method Detail

getGamma

public double getGamma()
Returns the cooling parameter value gamma. When the timeout is set, the gamma value is re-calculated at each iteration so that the temperature will become 1.0 at the end.

Returns:
the gamma value

setGamma

public void setGamma(double gamma)
Sets the cooling parameter value gamma.

Parameters:
gamma - the gamma to set

getTemperature

public double getTemperature()
Returns the temperature.

Returns:
the temperature

setTemperature

public void setTemperature(double temp)
Sets the temperature.

Parameters:
temp - the temperature to set

startSearch

public void startSearch()
Description copied from class: LocalSearch
Finds the initial solution.

Overrides:
startSearch in class LocalSearch

nextSearch

public void nextSearch()
Description copied from class: LocalSearch
Finds the next solution.

Overrides:
nextSearch in class LocalSearch

Cream version 1.06 Core API Specification

Cream: Constraint Programming Class Library for Java