/** * Performs multiple increments. * See the other {@link #incrementCount() incrementCount} method). * * @param value Number of increments. * @throws MaxCountExceededException at counter exhaustion. */ public void incrementCount(int value) throws MaxCountExceededException { for (int i = 0; i < value; i++) { incrementCount(); } }
/** * Increment the evaluation count. * * @throws TooManyEvaluationsException if the allowed evaluations * have been exhausted. */ protected void incrementEvaluationCount() throws TooManyEvaluationsException { evaluations.incrementCount(); }
/** * Increment the iteration count. * * @throws TooManyIterationsException if the allowed iterations * have been exhausted. */ protected void incrementIterationCount() throws TooManyIterationsException { iterations.incrementCount(); }
/** {@inheritDoc} */ @Override public Evaluation evaluate(final RealVector point) { counter.incrementCount(); return super.evaluate(point); }
/** {@inheritDoc} */ @Override public void incrementCount() { super.incrementCount(); delegate.increment(); }
/** * @param f Function. * @param x Argument. * @return {@code f(x)} * @throws TooManyEvaluationsException if the maximal number of evaluations is * exceeded. */ private double eval(UnivariateFunction f, double x) { try { evaluations.incrementCount(); } catch (MaxCountExceededException e) { throw new TooManyEvaluationsException(e.getMax()); } return f.value(x); } }
/** * Compute the objective function value. * * @param point Point at which the objective function must be evaluated. * @return the objective function value at the specified point. * @throws TooManyEvaluationsException if the maximal number of evaluations is * exceeded. */ protected double[] computeObjectiveValue(double[] point) { try { evaluations.incrementCount(); } catch (MaxCountExceededException e) { throw new TooManyEvaluationsException(e.getMax()); } return function.value(point); }
/** * 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) { try { evaluations.incrementCount(); } catch (MaxCountExceededException e) { throw new TooManyEvaluationsException(e.getMax()); } return function.value(point); }
/** * Compute the objective function value. * * @param point Point at which the objective function must be evaluated. * @return the objective function value at the specified point. * @throws TooManyEvaluationsException if the maximal number of * evaluations is exceeded. */ protected double computeObjectiveValue(double[] point) { try { evaluations.incrementCount(); } catch (MaxCountExceededException e) { throw new TooManyEvaluationsException(e.getMax()); } return function.value(point); }
super.incrementCount(delegate.getCount());
iterationCounter.incrementCount(); evaluationCounter.incrementCount(); current = lsp.evaluate(currentPoint); final RealVector currentResiduals = current.getResiduals();
evaluationCounter.incrementCount(); iterationCounter.incrementCount(); evaluationCounter.incrementCount(); current = problem.evaluate(new ArrayRealVector(currentPoint)); currentResiduals = current.getResiduals().toArray();
/** * Increment the evaluation count. * * @throws TooManyEvaluationsException if the allowed evaluations * have been exhausted. */ protected void incrementEvaluationCount() throws TooManyEvaluationsException { evaluations.incrementCount(); }
/** * Increment the iteration count. * * @throws TooManyIterationsException if the allowed iterations * have been exhausted. */ protected void incrementIterationCount() throws TooManyIterationsException { iterations.incrementCount(); }
/** * Performs multiple increments. * See the other {@link #incrementCount() incrementCount} method). * * @param value Number of increments. * @throws MaxCountExceededException at counter exhaustion. */ public void incrementCount(int value) throws MaxCountExceededException { for (int i = 0; i < value; i++) { incrementCount(); } }
/** * Increment the evaluation count. * * @throws TooManyEvaluationsException if the allowed evaluations * have been exhausted. */ protected void incrementEvaluationCount() throws TooManyEvaluationsException { evaluations.incrementCount(); }
/** * Increment the iteration count. * * @throws TooManyIterationsException if the allowed iterations * have been exhausted. */ protected void incrementIterationCount() throws TooManyIterationsException { iterations.incrementCount(); }
/** {@inheritDoc} */ @Override public Evaluation evaluate(final RealVector point) { counter.incrementCount(); return super.evaluate(point); }
/** {@inheritDoc} */ @Override public void incrementCount() { super.incrementCount(); delegate.increment(); }
/** {@inheritDoc} */ @Override public Evaluation evaluate(final RealVector point) { counter.incrementCount(); return super.evaluate(point); }