This specific problem is the following differential equation :
x'' = -x
x' -> -x'
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;
8182838485868788899091
if (rel < MIN_RELATIVE_TOLERANCE) { throw new NumberIsTooSmallException(rel, MIN_RELATIVE_TOLERANCE, true); } if (abs <= 0) { throw new NotStrictlyPositiveException(abs); } relativeThreshold = rel; absoluteThreshold = abs; }
868788899091929394
final double absoluteThreshold, final int maxIter) { super(relativeThreshold, absoluteThreshold); if (maxIter <= 0) { throw new NotStrictlyPositiveException(maxIter); } maxIterationCount = maxIter; }