|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jopt.csp.CspSolver jopt.csp.spi.SolverImpl jopt.js.JsSolver
Class that is used to construct and solve JS problems. The JSSolver is built on top of the CspSolver. The solver can be based on various different CSP algorithms and searching techniques, but it also has default algorithms if the user does not wish to override these options.
Constructor Summary | |
JsSolver()
|
Method Summary | |
static JsSolver |
createJsSolver()
Creates a new solver based upon a default generalized AC5 bounds algorithm with a default search manager |
static JsSolver |
createSolver(JsAlgorithm alg)
Creates a new solver based upon a specific algorithm with the default search manager |
static JsSolver |
createSolver(JsAlgorithm alg,
jopt.csp.search.SearchManager mgr)
Creates a new solver based upon a given CSP algorithm and search manager |
abstract JsLocalSearch |
getJsLocalSearch()
Returns a LocalSearch object that is used to create common objects for use during local neighborhood search operations |
abstract JsSearchActions |
getJsSearchActions()
Returns a SearchActions object that is used to create common search operations |
abstract JsSearchGoals |
getJsSearchGoals()
Returns a SearchGoals object that is will create common goals for guiding searches |
abstract JsSearchTechniques |
getJsSearchTechniques()
Returns a SearchTechniques object that is used to create common techniques for guiding searches such as Breadth First Searching and Depth First Searching |
abstract JsVariableFactory |
getJsVarFactory()
Returns the variable factory for the algorithm the solver is based upon |
abstract void |
problemBuilt()
This is called once the problem is in a state where any subsequent changes are backtrackable. |
Methods inherited from class jopt.csp.spi.SolverImpl |
addConstraint, addConstraint, addConstraint, addConstraint, addVariable, clear, createDefaultAlgorithm, getAutoPropagate, nextSolution, propagate, reset, restoreNeighboringSolution, restoreSolution, setAutoPropagate, solve, solve, storeSolution |
Methods inherited from class jopt.csp.CspSolver |
createSolver, createSolver, createSolver, createSolver, getLocalSearch, getSearchActions, getSearchGoals, getSearchLimits, getSearchTechniques, getVarFactory, restoreSolution, solve, solve, solve, solve, solve, solve, solve, solve, solve, solve, solve, solve, solve, solve, solve, storeSolution |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public JsSolver()
Method Detail |
public static JsSolver createJsSolver()
public static JsSolver createSolver(JsAlgorithm alg, jopt.csp.search.SearchManager mgr)
alg
- Algorithm solver is based uponmgr
- Search manager that will be used to locate solutions by solver
public abstract void problemBuilt()
public static JsSolver createSolver(JsAlgorithm alg)
alg
- Algorithm solver is based uponpublic abstract JsVariableFactory getJsVarFactory()
public abstract JsSearchActions getJsSearchActions()
public abstract JsSearchGoals getJsSearchGoals()
public abstract JsSearchTechniques getJsSearchTechniques()
public abstract JsLocalSearch getJsLocalSearch()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |