code: public double repairSolutionVariableValue(double value, double lowerBound, double upperBound) {
      if (lowerBound > upperBound) {
        throw new JMetalException("The lower bound (" + lowerBound + ") is greater than the "
            + "upper bound (" + upperBound+")") ;
      }
  
      double result = value ;
      if (value < lowerBound) {
        result = lowerBound ;
      }
      if (value > upperBound) {
        result = upperBound ;
      }
  
      return result ;
    }
docs: Checks if the value is between its bounds; if not, the lower or upper bound is returned
  @param value The value to be checked
  @param lowerBound
  @param upperBound
  @return The same value if it is in the limits or a repaired value otherwise