Package org.jacop.search.sgmpcs
Interface ImproveSolution<T extends Var>
- Type Parameters:
T
- type of the variable for which choice point is being created.
- All Known Implementing Classes:
SimpleImprovementSearch
public interface ImproveSolution<T extends Var>
Defines an interface for defining different methods for selecting next search
decision to be taken. The search decision called choice point will be first
enforced and later upon backtrack a negation of that search decision will be
enforced.
- Version:
- 4.10
-
Method Summary
Modifier and TypeMethodDescriptionint
int
int
int[]
boolean
searchFromEliteSolution
(int[] solution, int failLimit) boolean
searchFromEmptySolution
(int failLimit) void
setPrintInfo
(boolean p) void
setTimeOut
(long timeOut)
-
Method Details
-
searchFromEmptySolution
boolean searchFromEmptySolution(int failLimit) -
searchFromEliteSolution
boolean searchFromEliteSolution(int[] solution, int failLimit) -
getCurrentCost
int getCurrentCost() -
getSolution
int[] getSolution() -
getNumberFails
int getNumberFails() -
getFailLimit
int getFailLimit() -
setPrintInfo
void setPrintInfo(boolean p) -
setTimeOut
void setTimeOut(long timeOut)
-