Package dealib.components
Interface BoundsChecker
public interface BoundsChecker
BoundsChecker is an interface for checking the factibiliy of the candidate
solutions coded in the genotype of an Individual.
- Since:
- 1.0
- Version:
- 1.0
- Author:
- Alicia Vazquez Ramos
-
Method Summary
Modifier and TypeMethodDescriptionvoid
checkBounds
(double[] LB, double[] UB, Individual... individuals) Enables implementing another checking scheme distinct from default one.static void
checkBoundsDefault
(double[] LB, double[] UB, Individual V) Default method for checking the factibility of the given Individual: if the values are above the upper bounds, it is replaced by the maximum possible value and analogously with lower bounds.
-
Method Details
-
checkBounds
Enables implementing another checking scheme distinct from default one.- Parameters:
LB
- lower bounds of the problem domain.UB
- upper bounds of the problem domain.individuals
- array of individuals that may be needed for the scheme.
-
checkBoundsDefault
Default method for checking the factibility of the given Individual: if the values are above the upper bounds, it is replaced by the maximum possible value and analogously with lower bounds.- Parameters:
LB
- lower bounds of the problem domain.UB
- upper bounds of the problem domain.V
- individual to be checked.
-