Package com.artelys.kalis
Class KAbsoluteToleranceOptimalityChecker
- java.lang.Object
-
- com.artelys.kalis.KOptimalityToleranceChecker
-
- com.artelys.kalis.KAbsoluteToleranceOptimalityChecker
-
public class KAbsoluteToleranceOptimalityChecker extends KOptimalityToleranceChecker
An OptimalityToleranceChecker to use with any type of
KNumVar objective, which use an absolute difference criteria.
-
-
Field Summary
-
Fields inherited from class com.artelys.kalis.KOptimalityToleranceChecker
swigCMemOwn
-
-
Constructor Summary
Constructors Modifier Constructor Description KAbsoluteToleranceOptimalityChecker(boolean maximize, double tolerance)
Primary constructorprotected
KAbsoluteToleranceOptimalityChecker(long cPtr, boolean cMemoryOwn)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
delete()
protected void
finalize()
protected static long
getCPtr(KAbsoluteToleranceOptimalityChecker obj)
boolean
isGoodEnough(double bestSolutionObj, double bestBound)
Check for the optimality tolearance
double
nextBoundToTry(double bestSolutionObj)
Returns a bound to set on the objective, in order to look for solution which are not too close from the
current best known solution.-
Methods inherited from class com.artelys.kalis.KOptimalityToleranceChecker
getCPtr
-
-
-
-
Method Detail
-
getCPtr
protected static long getCPtr(KAbsoluteToleranceOptimalityChecker obj)
-
finalize
protected void finalize()
- Overrides:
finalize
in classKOptimalityToleranceChecker
-
delete
public void delete()
- Overrides:
delete
in classKOptimalityToleranceChecker
-
isGoodEnough
public boolean isGoodEnough(double bestSolutionObj, double bestBound)
Description copied from class:KOptimalityToleranceChecker
Check for the optimality tolearance
- Overrides:
isGoodEnough
in classKOptimalityToleranceChecker
- Parameters:
bestSolutionObj
-bestBound
-- Returns:
- true is the best solution is close enough - for some criteria - to the optimum
-
nextBoundToTry
public double nextBoundToTry(double bestSolutionObj)
Description copied from class:KOptimalityToleranceChecker
Returns a bound to set on the objective, in order to look for solution which are not too close from the
current best known solution. This prevent from storing too many solutions which are very similar.
- Overrides:
nextBoundToTry
in classKOptimalityToleranceChecker
- Parameters:
bestSolutionObj
- the best objective value of already found solutions.- Returns:
- a bound to set on the objective.
-
-