f(x) e-x2
I. Krasikov, Nonnegative quadratic forms and bounds on orthogonal polynomials, Journal of Approximation theory 111, 31-49
111112113114115116117118119
* #optimize(int,MultivariateVectorFunction,double[],double[],double[]) optimize} has not been * called. */ public PointVectorValuePair[] getOptima() { if (optima == null) { throw new MathIllegalStateException(LocalizedFormats.NO_OPTIMUM_COMPUTED_YET); } return optima.clone(); }
114115116117118119120121122
* @throws MathIllegalStateException if {@link #optimize(OptimizationData[]) * optimize} has not been called. */ public UnivariatePointValuePair[] getOptima() { if (optima == null) { throw new MathIllegalStateException(LocalizedFormats.NO_OPTIMUM_COMPUTED_YET); } return optima.clone(); }
154155156157158159160161162163164165166167
searchIntervalIndex = i; continue; } } if (maxEvalIndex == -1) { throw new MathIllegalStateException(); } if (searchIntervalIndex == -1) { throw new MathIllegalStateException(); } RuntimeException lastException = null; optima = new UnivariatePointValuePair[starts]; totalEvaluations = 0;
651652653654655656657658659
* Throws IllegalStateException if n > 0. * @throws MathIllegalStateException if data has been added */ private void checkEmpty() throws MathIllegalStateException { if (n > 0) { throw new MathIllegalStateException( LocalizedFormats.VALUES_ADDED_BEFORE_CONFIGURING_STATISTIC, n); } }
110111112113114115116117118
* #optimize(int,MultivariateFunction,GoalType,double[]) optimize} * has not been called. */ public PointValuePair[] getOptima() { if (optima == null) { throw new MathIllegalStateException(LocalizedFormats.NO_OPTIMUM_COMPUTED_YET); } return optima.clone(); }
222223224225226227228
* @throws MathUnsupportedOperationException in all cases */ @Override public int getN() throws MathUnsupportedOperationException { throw new MathUnsupportedOperationException(); }
953954955956957958959960
* {@link #optimize(OptimizationData[]) optimize} method. */ private void checkParameters() { if (getLowerBound() != null || getUpperBound() != null) { throw new MathUnsupportedOperationException(LocalizedFormats.CONSTRAINT); } }
7475767778798081828384
if (optimizer == null || generator == null) { throw new NullArgumentException(); } if (starts < 1) { throw new NotStrictlyPositiveException(starts); } this.optimizer = optimizer; this.starts = starts; this.generator = generator;
140141142143144145146147148149150
double inverseCumAccuracy) throws NotStrictlyPositiveException { super(rng); if (mean <= 0) { throw new NotStrictlyPositiveException(LocalizedFormats.MEAN, mean); } this.mean = mean; logMean = FastMath.log(mean); solverAbsoluteAccuracy = inverseCumAccuracy; }
7677787980818283848586
final int starts, final RandomGenerator generator) { super(optimizer.getConvergenceChecker()); if (starts < 1) { throw new NotStrictlyPositiveException(starts); } this.optimizer = optimizer; this.starts = starts; this.generator = generator;