code: public void extendUpperBound(double[] bound) {
          if (bound.length != dimension) {
              throw new IllegalArgumentException(BOUND_SIZE_DON_T_MATCH_THE_DIMENSION);
          }
  
          boolean extend = false;
          for (int i = 0; i < bound.length; i++) {
              if (bound[i] > originalUpperBound[i]) {
                  originalUpperBound[i] = bound[i];
                  extend = true;
              }
          }
  
          if (extend) {
              reset();
          }
      }
docs: Extend upper bounds.