/** {@inheritDoc} */ public void addEventHandler(final EventHandler handler, final double maxCheckInterval, final double convergence, final int maxIterationCount) { addEventHandler(handler, maxCheckInterval, convergence, maxIterationCount, new BracketingNthOrderBrentSolver(convergence, 5)); }
x[0] = getMin(); x[1] = getStartValue(); x[2] = getMax(); verifySequence(x[0], x[1], x[2]); y[1] = computeObjectiveValue(x[1]); if (Precision.equals(y[1], 0.0, 1)) { y[0] = computeObjectiveValue(x[0]); if (Precision.equals(y[0], 0.0, 1)) { y[2] = computeObjectiveValue(x[2]); if (Precision.equals(y[2], 0.0, 1)) { final double xTol = getAbsoluteAccuracy() + getRelativeAccuracy() * FastMath.max(FastMath.abs(xA), FastMath.abs(xB)); if (((xB - xA) <= xTol) || (FastMath.max(absYA, absYB) < getFunctionValueAccuracy())) { switch (allowed) { case ANY_SIDE : nextX = guessX(targetY, tmpX, y, start, end); final double nextY = computeObjectiveValue(nextX); if (Precision.equals(nextY, 0.0, 1)) {
x[0] = getMin(); x[1] = getStartValue(); x[2] = getMax(); verifySequence(x[0], x[1], x[2]); y[1] = computeObjectiveValue(x[1]); if (Precision.equals(y[1], 0.0, 1)) { y[0] = computeObjectiveValue(x[0]); if (Precision.equals(y[0], 0.0, 1)) { y[2] = computeObjectiveValue(x[2]); if (Precision.equals(y[2], 0.0, 1)) { final double xTol = getAbsoluteAccuracy() + getRelativeAccuracy() * Math.max(Math.abs(xA), Math.abs(xB)); if (((xB - xA) <= xTol) || (Math.max(absYA, absYB) < getFunctionValueAccuracy())) { switch (allowed) { case ANY_SIDE : nextX = guessX(targetY, tmpX, y, start, end); final double nextY = computeObjectiveValue(nextX); if (Precision.equals(nextY, 0.0, 1)) {
/** {@inheritDoc} */ public void addEventHandler(final EventHandler handler, final double maxCheckInterval, final double convergence, final int maxIterationCount) { addEventHandler(handler, maxCheckInterval, convergence, maxIterationCount, new BracketingNthOrderBrentSolver(convergence, 5)); }
x[0] = getMin(); x[1] = getStartValue(); x[2] = getMax(); verifySequence(x[0], x[1], x[2]); y[1] = computeObjectiveValue(x[1]); if (Precision.equals(y[1], 0.0, 1)) { y[0] = computeObjectiveValue(x[0]); if (Precision.equals(y[0], 0.0, 1)) { y[2] = computeObjectiveValue(x[2]); if (Precision.equals(y[2], 0.0, 1)) { final double xTol = getAbsoluteAccuracy() + getRelativeAccuracy() * FastMath.max(FastMath.abs(xA), FastMath.abs(xB)); if (((xB - xA) <= xTol) || (FastMath.max(absYA, absYB) < getFunctionValueAccuracy())) { switch (allowed) { case ANY_SIDE : nextX = guessX(targetY, tmpX, y, start, end); final double nextY = computeObjectiveValue(nextX); if (Precision.equals(nextY, 0.0, 1)) {
/** {@inheritDoc} */ public void addEventHandler(final EventHandler handler, final double maxCheckInterval, final double convergence, final int maxIterationCount) { addEventHandler(handler, maxCheckInterval, convergence, maxIterationCount, new BracketingNthOrderBrentSolver(convergence, 5)); }