Interface RepairDoubleSolution
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
RepairDoubleSolutionWithBoundValue,RepairDoubleSolutionWithOppositeBoundValue,RepairDoubleSolutionWithRandomValue
- Version:
- 1.0 Interface representing classes that check whether a value is between a lower and an upper bound. If not, a value between those limits is returned
- Author:
- Antonio J. Nebro
-
Method Summary
Modifier and TypeMethodDescriptiondoublerepairSolutionVariableValue(double value, double lowerBound, double upperBound) Checks if a given value is between its bounds and repairs it otherwise
-
Method Details
-
repairSolutionVariableValue
double repairSolutionVariableValue(double value, double lowerBound, double upperBound) Checks if a given value is between its bounds and repairs it otherwise- Parameters:
value- The value to be checkedlowerBound-upperBound-- Returns:
- The same value if it is between the limits or a repaired value otherwise
-