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.8
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intgetCurrentCost()intgetFailLimit()intgetNumberFails()int[]getSolution()booleansearchFromEliteSolution(int[] solution, int failLimit)booleansearchFromEmptySolution(int failLimit)voidsetPrintInfo(boolean p)voidsetTimeOut(long timeOut)
-
-
-
Method Detail
-
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)
-
-