/** Evaluate the target function for the parameters given by 'vertex' * The function value is stored into the last (extra) array element. */ private void evaluate(double[] vertex) { vertex[numParams] = userFunction.userFunction2(vertex, 0); }