be.cetic.ddolibscala.common.solver.stopcriterion
This package contains factories of stop criteria deciding when a solver must terminate its search, based on metrics such as time, iterations or lack of improvement.
It wraps org.ddolib.common.solver.stopcriterion. As in the Java library, a criterion specific to a solver family (see DdoStopCriterion and AstarStopCriterion) throws an IllegalArgumentException if given to another family.
Criteria can be combined:
import be.cetic.ddolibscala.common.solver.stopcriterion.*
solver.minimize(limit = StopCriterion.maxTime(10000) || StopCriterion.minGap(1.0))
Attributes
Members list
Type members
Classlikes
Factories for the stop criteria specific to the A*-based solvers (A*, Anytime Weighted A*, ACS). Given to another solver, they throw an IllegalArgumentException.
Factories for the stop criteria specific to the A*-based solvers (A*, Anytime Weighted A*, ACS). Given to another solver, they throw an IllegalArgumentException.
Wraps the factories of org.ddolib.common.solver.stopcriterion.AstarStopCriterion.
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
AstarStopCriterion.type
Factories for the stop criteria specific to the DDO-based solvers (DDO, exact, LNS). Given to another solver, they throw an IllegalArgumentException.
Factories for the stop criteria specific to the DDO-based solvers (DDO, exact, LNS). Given to another solver, they throw an IllegalArgumentException.
Wraps the factories of org.ddolib.common.solver.stopcriterion.DdoStopCriterion.
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
DdoStopCriterion.type
Factories for the stop criteria applicable to any solver.
Factories for the stop criteria applicable to any solver.
Wraps the factories of org.ddolib.common.solver.stopcriterion.StopCriterion.
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
StopCriterion.type
Types
A stop criterion returns true if the search should be terminated. It is the type of the limit parameter of the solvers' minimize method.
A stop criterion returns true if the search should be terminated. It is the type of the limit parameter of the solvers' minimize method.
Alias for a Scala version of org.ddolib.common.solver.stopcriterion.StopCriterion.
Attributes
Extensions
Extensions
Returns a criterion that stops the search only when both criteria are met.
Returns a criterion that stops the search only when both criteria are met.
Attributes
Returns the negation of the criterion.
Returns the negation of the criterion.
Attributes
Returns a criterion that stops the search as soon as one of the criteria is met.
Returns a criterion that stops the search as soon as one of the criteria is met.