Interface RepairDoubleSolution

All Superinterfaces:
Serializable
All Known Implementing Classes:
RepairDoubleSolutionWithBoundValue, RepairDoubleSolutionWithOppositeBoundValue, RepairDoubleSolutionWithRandomValue

public interface RepairDoubleSolution extends Serializable
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 Type
    Method
    Description
    double
    repairSolutionVariableValue(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 checked
      lowerBound -
      upperBound -
      Returns:
      The same value if it is between the limits or a repaired value otherwise