类 AbstractUnivariateDifferentiableSolver
java.lang.Object
org.hipparchus.analysis.solvers.BaseAbstractUnivariateSolver<UnivariateDifferentiableFunction>
org.hipparchus.analysis.solvers.AbstractUnivariateDifferentiableSolver
- 直接已知子类:
-
NewtonRaphsonSolver
public abstract class AbstractUnivariateDifferentiableSolver extends BaseAbstractUnivariateSolver<UnivariateDifferentiableFunction> implements UnivariateDifferentiableSolver
为通用求解器提供了几个有用的函数的默认实现。
-
构造器概要
限定符构造器说明protected
AbstractUnivariateDifferentiableSolver
(double absoluteAccuracy) 使用给定的绝对精度构造求解器。protected
AbstractUnivariateDifferentiableSolver
(double relativeAccuracy, double absoluteAccuracy, double functionValueAccuracy) 使用给定的精度构造求解器。 -
方法概要
修饰符和类型方法说明protected DerivativeStructure
computeObjectiveValueAndDerivative
(double point) 计算目标函数值。protected void
setup
(int maxEval, UnivariateDifferentiableFunction f, double min, double max, double startValue) 准备计算。从类继承的方法 org.hipparchus.analysis.solvers.BaseAbstractUnivariateSolver
computeObjectiveValue, doSolve, getAbsoluteAccuracy, getEvaluations, getFunctionValueAccuracy, getMax, getMin, getRelativeAccuracy, getStartValue, incrementEvaluationCount, isBracketing, isSequence, solve, solve, solve, verifyBracketing, verifyInterval, verifySequence
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
从接口继承的方法 org.hipparchus.analysis.solvers.BaseUnivariateSolver
getAbsoluteAccuracy, getEvaluations, getFunctionValueAccuracy, getRelativeAccuracy, solve, solve, solve
-
构造器详细资料
-
AbstractUnivariateDifferentiableSolver
protected AbstractUnivariateDifferentiableSolver(double absoluteAccuracy) 使用给定的绝对精度构造求解器。- 参数:
-
absoluteAccuracy
- 最大绝对误差。
-
AbstractUnivariateDifferentiableSolver
protected AbstractUnivariateDifferentiableSolver(double relativeAccuracy, double absoluteAccuracy, double functionValueAccuracy) 使用给定的精度构造求解器。- 参数:
-
relativeAccuracy
- 最大相对误差。 -
absoluteAccuracy
- 最大绝对误差。 -
functionValueAccuracy
- 最大函数值误差。
-
-
方法详细资料
-
computeObjectiveValueAndDerivative
protected DerivativeStructure computeObjectiveValueAndDerivative(double point) throws MathIllegalStateException 计算目标函数值。- 参数:
-
point
- 必须评估目标函数的点。 - 返回:
- 指定点处的目标函数值和导数。
- 抛出:
-
MathIllegalStateException
- 如果超过最大评估次数。
-
setup
protected void setup(int maxEval, UnivariateDifferentiableFunction f, double min, double max, double startValue) 准备计算。如果子类重写任何solve
方法,则必须调用此方法。- 覆盖:
-
setup
在类中BaseAbstractUnivariateSolver<UnivariateDifferentiableFunction>
- 参数:
-
maxEval
- 最大评估次数。 -
f
- 要解决的函数。 -
min
- 区间的下限。 -
max
- 区间的上限。 -
startValue
- 要使用的起始值。
-