public OptParam(Param p) {
            parameter = p;
            double min = p.getLower();
            double max = p.getUpper();

            // Compute the parameter mean.
//            double[] val_f = p.getVal_f();
            double[] val = Util.getVals(p);
            mean = 0.0;
            for (int i = 0; i < val.length; i++) {
                mean += val[i];
            }
            mean = mean / val.length;
            range = max - min;

            /*  Compute the proportional deviation from the mean for each
             *  individual parameter value.
             */
            prop_dev = new double[val.length];
            for (int i = 0; i < prop_dev.length; i++) {
                prop_dev[i] = val[i] / mean;
            }
        }