/** * Performs the optimization. * * @return a point/value pair that satisfies the convergence criteria. * @throws TooManyEvaluationsException if the maximal number of * evaluations is exceeded. * @throws TooManyIterationsException if the maximal number of * iterations is exceeded. */ public PAIR optimize() throws TooManyEvaluationsException, TooManyIterationsException { // Reset counters. evaluations.resetCount(); iterations.resetCount(); // Perform optimization. return doOptimize(); }
/** {@inheritDoc} */ @Override public void resetCount() { super.resetCount(); delegate = delegate.withStart(0); }
evaluations.resetCount(); iterations.resetCount();
/** {@inheritDoc} */ public UnivariatePointValuePair optimize(int maxEval, UnivariateFunction f, GoalType goalType, double min, double max, double startValue) { // Checks. if (f == null) { throw new NullArgumentException(); } if (goalType == null) { throw new NullArgumentException(); } // Reset. searchMin = min; searchMax = max; searchStart = startValue; goal = goalType; function = f; evaluations.setMaximalCount(maxEval); evaluations.resetCount(); // Perform computation. return doOptimize(); }
evaluations.resetCount(); function = f; goal = goalType;
evaluations.resetCount(); function = f;
evaluations.resetCount(); final boolean isMinim = goal == GoalType.MINIMIZE;
/** * Performs the optimization. * * @return a point/value pair that satisfies the convergence criteria. * @throws TooManyEvaluationsException if the maximal number of * evaluations is exceeded. * @throws TooManyIterationsException if the maximal number of * iterations is exceeded. */ public PAIR optimize() throws TooManyEvaluationsException, TooManyIterationsException { // Reset counters. evaluations.resetCount(); iterations.resetCount(); // Perform optimization. return doOptimize(); }
/** * Performs the optimization. * * @return a point/value pair that satisfies the convergence criteria. * @throws TooManyEvaluationsException if the maximal number of * evaluations is exceeded. * @throws TooManyIterationsException if the maximal number of * iterations is exceeded. */ public PAIR optimize() throws TooManyEvaluationsException, TooManyIterationsException { // Reset counters. evaluations.resetCount(); iterations.resetCount(); // Perform optimization. return doOptimize(); }
/** {@inheritDoc} */ @Override public void resetCount() { super.resetCount(); delegate = delegate.withStart(0); }
/** {@inheritDoc} */ @Override public void resetCount() { super.resetCount(); delegate = delegate.withStart(0); }
evaluations.resetCount(); iterations.resetCount();
evaluations.resetCount(); iterations.resetCount();
/** {@inheritDoc} */ public UnivariatePointValuePair optimize(int maxEval, UnivariateFunction f, GoalType goalType, double min, double max, double startValue) { // Checks. if (f == null) { throw new NullArgumentException(); } if (goalType == null) { throw new NullArgumentException(); } // Reset. searchMin = min; searchMax = max; searchStart = startValue; goal = goalType; function = f; evaluations.setMaximalCount(maxEval); evaluations.resetCount(); // Perform computation. return doOptimize(); }
evaluations.resetCount(); function = f; goal = goalType;
evaluations.resetCount(); function = f;
evaluations.resetCount(); final boolean isMinim = goal == GoalType.MINIMIZE;