|
Cream version 1.4 Core API Specification |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjp.ac.kobe_u.cs.cream.Solver
jp.ac.kobe_u.cs.cream.LocalSearch
jp.ac.kobe_u.cs.cream.SASearch
public class SASearch
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.
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 |
---|
public SASearch(Network network)
public SASearch(Network network, int option)
public SASearch(Network network, String name)
public SASearch(Network network, int option, String name)
Method Detail |
---|
public double getGamma()
public void setGamma(double gamma)
gamma
- the gamma to setpublic double getTemperature()
public void setTemperature(double temp)
temp
- the temperature to setpublic void startSearch()
LocalSearch
startSearch
in class LocalSearch
public void nextSearch()
LocalSearch
nextSearch
in class LocalSearch
|
Cream version 1.4 Core API Specification |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |