Package org.projog.clp
Class BruteForceSearch
java.lang.Object
org.projog.clp.BruteForceSearch
Performs a brute force search.
Tries all possible values in search of a valid solution. When a solution is found it backtracks to find alternative solutions.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ClpConstraintStore[]private intprivate final int[]private final ClpConstraintStoreprivate final Possibilities[] -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
original
-
copies
-
p
-
indexes
private final int[] indexes -
idx
private int idx
-
-
Constructor Details
-
BruteForceSearch
-
-
Method Details
-
next
Finds a valid solution.If a valid solution was found on a previous call then it will backtrack in an attempt to find an alternative solution.
- Returns:
- the next solution or, if no remaining solutions,
null
-
getCurrent
-