|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectomnics.AbstractSolver
omnics.SystematicSolver
omnics.Backtracking
public class Backtracking
A concrete implementation of SystematicSolver which uses
a backtracking algorithm to explore the search space.
| Field Summary |
|---|
| Fields inherited from class omnics.SystematicSolver |
|---|
assignmentStrategy, attempts, backtrackCounter, backwardStrategy, boundAlgorithm, candidates, candidatesMap, constraintsMap, DEBUG, domainsMap, eventHandler, explainer, failed, failures, filters, firingEvents, forwardStrategy, listeners, longestBacktrack, path, solutionMap, thrashing |
| Fields inherited from class omnics.AbstractSolver |
|---|
analyzer, endTime, optimum, paused, problem, running, solution, solutions, solutionsLimit, startTime, timeLimit |
| Fields inherited from interface omnics.Solver |
|---|
BENCHMARK_FORMAT, DETAILED_FORMAT |
| Constructor Summary | |
|---|---|
Backtracking(Problem problem)
Creates a new instance of BackTracking |
|
| Method Summary | |
|---|---|
void |
backTo(Var var)
Goes back to a specified variable |
int |
filterAndPropagate(Var trigger)
Applies filters and propagates changes. |
void |
forwardTo(Var var)
Moves forward |
void |
instantiate(Var var,
java.lang.Object val)
|
void |
revoke(Var var)
Revokes an instantiation done by the solver. |
TupleSet |
solveAll()
Solves the problem and returns all solutions or null if no solution can be found |
| Methods inherited from class omnics.AbstractSolver |
|---|
eval, getAnalyzer, getEndTime, getProblem, getSolutionsLimit, getStartTime, getTimeLimit, isRunning, logResult, optimum, save, setAnalyzer, setEndTime, setProblem, setRunning, setSolutionsLimit, setStartTime, setTimeLimit, solution, solutions, solve, solve, time, timeToString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Backtracking(Problem problem)
| Method Detail |
|---|
public final TupleSet solveAll()
Solvernull if no solution can be found
solveAll in interface SolversolveAll in class AbstractSolvernull if the problem
is inconsistentpublic final void forwardTo(Var var)
public final void instantiate(Var var,
java.lang.Object val)
public final void backTo(Var var)
public final void revoke(Var var)
public final int filterAndPropagate(Var trigger)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||