public class MinDelta extends Object implements StopCriterion
Constructor and Description |
---|
MinDelta(double minDelta)
Create a stop criterion that imposes a minimum evaluation delta when
finding a new best solution during a search run.
|
Modifier and Type | Method and Description |
---|---|
boolean |
searchShouldStop(Search<?> search)
Checks whether the minimum delta observed during the current run of the given
search is still above the required minimum.
|
String |
toString() |
public MinDelta(double minDelta)
minDelta
- minimum evaluation delta (> 0.0)IllegalArgumentException
- if minDelta
is not > 0.0public boolean searchShouldStop(Search<?> search)
searchShouldStop
in interface StopCriterion
search
- search for which the minimum delta has to be checkedtrue
in case of a minimum delta below the required minimumCopyright © 2016. All rights reserved.