|
Cream version 1.06 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.ParallelSolver
public class ParallelSolver
Parallel solver.
Only useful for the optimization problems containing Serialized
constraints
in the current implementation.
Field Summary |
---|
Fields inherited from class jp.ac.kobe_u.cs.cream.Solver |
---|
BETTER, DEFAULT, MAXIMIZE, MINIMIZE, NONE |
Constructor Summary | |
---|---|
ParallelSolver(Solver[] solvers)
|
|
ParallelSolver(Solver[] solvers,
String name)
|
Method Summary | |
---|---|
void |
allJoin()
|
void |
allStart()
|
Solver[] |
getSolvers()
Returns the sub-solvers. |
void |
run()
The body of the solver. |
void |
setMonitor(Monitor monitor)
Sets the monitor. |
void |
solved(Solver solver,
Solution solution)
This method is called for each solution and at the end of search (solution is set to null). |
void |
stop()
Stops the execution of the solver. |
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, 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 ParallelSolver(Solver[] solvers)
public ParallelSolver(Solver[] solvers, String name)
Method Detail |
---|
public Solver[] getSolvers()
public void setMonitor(Monitor monitor)
Solver
setMonitor
in class Solver
monitor
- monitorpublic void stop()
Solver
stop
in class Solver
public void solved(Solver solver, Solution solution)
SolutionHandler
solved
in interface SolutionHandler
solver
- the solversolution
- the solution or null at the end of searchpublic void allStart()
public void allJoin()
public void run()
Solver
Solver.start()
methods.
run
in interface Runnable
run
in class Solver
|
Cream version 1.06 Core API Specification |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |