T - type of the variable for which choice point is being created.public class SimpleImprovementSearch<T extends IntVar> extends Object implements ImproveSolution<T>
| Modifier and Type | Class and Description |
|---|---|
class |
SimpleImprovementSearch.CostListener<T extends IntVar>
Saves the cost produced by a given search
|
| Modifier and Type | Field and Description |
|---|---|
SGMPCSCalculator |
failCalculator |
int[] |
solution |
Store |
store |
IntVar[] |
vars |
| Constructor and Description |
|---|
SimpleImprovementSearch(Store store,
IntVar[] vars,
IntVar cost) |
| Modifier and Type | Method and Description |
|---|---|
int |
getCurrentCost() |
int |
getFailLimit() |
int |
getNumberFails() |
int[] |
getSolution() |
boolean |
searchFromEliteSolution(int[] eliteSolution,
int failLimit) |
boolean |
searchFromEmptySolution(int failLimit) |
void |
setPrintInfo(boolean print) |
void |
setTimeOut(long timeOut) |
public Store store
public IntVar[] vars
public int[] solution
public SGMPCSCalculator failCalculator
public boolean searchFromEmptySolution(int failLimit)
searchFromEmptySolution in interface ImproveSolution<T extends IntVar>public boolean searchFromEliteSolution(int[] eliteSolution,
int failLimit)
searchFromEliteSolution in interface ImproveSolution<T extends IntVar>public int getCurrentCost()
getCurrentCost in interface ImproveSolution<T extends IntVar>public int[] getSolution()
getSolution in interface ImproveSolution<T extends IntVar>public int getNumberFails()
getNumberFails in interface ImproveSolution<T extends IntVar>public int getFailLimit()
getFailLimit in interface ImproveSolution<T extends IntVar>public void setPrintInfo(boolean print)
setPrintInfo in interface ImproveSolution<T extends IntVar>public void setTimeOut(long timeOut)
setTimeOut in interface ImproveSolution<T extends IntVar>Copyright © 2022. All rights reserved.