Package com.artelys.kalis
Class KIntegerObjectiveOptimalityChecker
- java.lang.Object
-
- com.artelys.kalis.KOptimalityToleranceChecker
-
- com.artelys.kalis.KIntegerObjectiveOptimalityChecker
-
public class KIntegerObjectiveOptimalityChecker extends KOptimalityToleranceChecker
An OptimalityToleranceChecker to use with integer objective only.
-
-
Field Summary
-
Fields inherited from class com.artelys.kalis.KOptimalityToleranceChecker
swigCMemOwn
-
-
Constructor Summary
Constructors Modifier Constructor Description KIntegerObjectiveOptimalityChecker(boolean maximize)protectedKIntegerObjectiveOptimalityChecker(long cPtr, boolean cMemoryOwn)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddelete()protected voidfinalize()protected static longgetCPtr(KIntegerObjectiveOptimalityChecker obj)booleanisGoodEnough(double bestSolutionObj, double bestBound)Check for the optimality tolearance
doublenextBoundToTry(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(KIntegerObjectiveOptimalityChecker obj)
-
finalize
protected void finalize()
- Overrides:
finalizein classKOptimalityToleranceChecker
-
delete
public void delete()
- Overrides:
deletein classKOptimalityToleranceChecker
-
isGoodEnough
public boolean isGoodEnough(double bestSolutionObj, double bestBound)Description copied from class:KOptimalityToleranceCheckerCheck for the optimality tolearance
- Overrides:
isGoodEnoughin 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:KOptimalityToleranceCheckerReturns 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:
nextBoundToTryin classKOptimalityToleranceChecker- Parameters:
bestSolutionObj- the best objective value of already found solutions.- Returns:
- a bound to set on the objective.
-
-