/** {@inheritDoc} */ public double solve(int maxEval, FUNC f, double startValue) throws TooManyEvaluationsException, NoBracketingException { return solve(maxEval, f, Double.NaN, Double.NaN, startValue); }
/** * Compute the objective function value. * * @param point Point at which the objective function must be evaluated. * @return the objective function value at specified point. * @throws TooManyEvaluationsException if the maximal number of evaluations * is exceeded. */ protected double computeObjectiveValue(double point) throws TooManyEvaluationsException { incrementEvaluationCount(); return function.value(point); }
/** * {@inheritDoc} */ @Override protected void setup(int maxEval, PolynomialFunction f, double min, double max, double startValue) { super.setup(maxEval, f, min, max, startValue); polynomialFunction = f; }
/** * {@inheritDoc} */ @Override protected void setup(int maxEval, UnivariateDifferentiableFunction f, double min, double max, double startValue) { super.setup(maxEval, f, min, max, startValue); function = f; } }
/** {@inheritDoc} */ public double solve(int maxEval, FUNC f, double min, double max) { return solve(maxEval, f, min, max, min + 0.5 * (max - min)); }
/** * {@inheritDoc} */ @Override protected void setup(int maxEval, DifferentiableUnivariateFunction f, double min, double max, double startValue) { super.setup(maxEval, f, min, max, startValue); functionDerivative = f.derivative(); } }
/** * Compute the objective function value. * * @param point Point at which the objective function must be evaluated. * @return the objective function value at specified point. * @throws TooManyEvaluationsException if the maximal number of evaluations * is exceeded. */ protected double computeObjectiveValue(double point) throws TooManyEvaluationsException { incrementEvaluationCount(); return function.value(point); }
/** {@inheritDoc} */ public double solve(int maxEval, FUNC f, double startValue) throws TooManyEvaluationsException, NoBracketingException { return solve(maxEval, f, Double.NaN, Double.NaN, startValue); }
/** * {@inheritDoc} */ @Override protected void setup(int maxEval, UnivariateDifferentiableFunction f, double min, double max, double startValue) { super.setup(maxEval, f, min, max, startValue); function = f; } }
/** * Compute the objective function value. * * @param point Point at which the objective function must be evaluated. * @return the objective function value at specified point. * @throws TooManyEvaluationsException if the maximal number of evaluations * is exceeded. */ protected double computeObjectiveValue(double point) throws TooManyEvaluationsException { incrementEvaluationCount(); return function.value(point); }
/** {@inheritDoc} */ public double solve(int maxEval, FUNC f, double startValue) throws TooManyEvaluationsException, NoBracketingException { return solve(maxEval, f, Double.NaN, Double.NaN, startValue); }
/** * {@inheritDoc} */ @Override protected void setup(int maxEval, UnivariateDifferentiableFunction f, double min, double max, double startValue) { super.setup(maxEval, f, min, max, startValue); function = f; } }
/** {@inheritDoc} */ public double solve(int maxEval, FUNC f, double min, double max) { return solve(maxEval, f, min, max, min + 0.5 * (max - min)); }
/** * {@inheritDoc} */ @Override protected void setup(int maxEval, PolynomialFunction f, double min, double max, double startValue) { super.setup(maxEval, f, min, max, startValue); polynomialFunction = f; }
/** {@inheritDoc} */ public double solve(int maxEval, FUNC f, double min, double max) { return solve(maxEval, f, min, max, min + 0.5 * (max - min)); }
/** * {@inheritDoc} */ @Override protected void setup(int maxEval, PolynomialFunction f, double min, double max, double startValue) { super.setup(maxEval, f, min, max, startValue); polynomialFunction = f; }