code: public static Bounds getSymmetricBounds(int dim, double l, double u) {
          double [] L = new double[dim];
          double [] U = new double[dim];
          for(int i=0; i<dim; i++) {
              L[i] = l;
              U[i] = u;
          }
          return new Bounds(L, U);
      }
docs: Gets bounds which are identical for all dimensions.
  
  @param dim The number of dimensions.
  @param l The value of all lower bounds.
  @param u The value of all upper bounds.
  @return The new bounds.