Class GaussNewtonOptimizer
java.lang.Object
org.apache.commons.math3.optim.BaseOptimizer<PointVectorValuePair>
org.apache.commons.math3.optim.BaseMultivariateOptimizer<PointVectorValuePair>
org.apache.commons.math3.optim.nonlinear.vector.MultivariateVectorOptimizer
org.apache.commons.math3.optim.nonlinear.vector.JacobianMultivariateVectorOptimizer
org.apache.commons.math3.optim.nonlinear.vector.jacobian.AbstractLeastSquaresOptimizer
org.apache.commons.math3.optim.nonlinear.vector.jacobian.GaussNewtonOptimizer
Deprecated.
Gauss-Newton least-squares solver.
Constraints are not supported: the call to
Constraints are not supported: the call to
optimize
will throw
MathUnsupportedOperationException
if bounds are passed to it.
This class solve a least-square problem by solving the normal equations of the linearized problem at each iteration. Either LU decomposition or QR decomposition can be used to solve the normal equations. LU decomposition is faster but QR decomposition is more robust for difficult problems.
- Since:
- 2.0
-
Field Summary
Fields inherited from class org.apache.commons.math3.optim.BaseOptimizer
evaluations, iterations
-
Constructor Summary
ConstructorsConstructorDescriptionGaussNewtonOptimizer
(boolean useLU, ConvergenceChecker<PointVectorValuePair> checker) Deprecated.Deprecated.Simple constructor with default settings. -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Performs the bulk of the optimization algorithm.Methods inherited from class org.apache.commons.math3.optim.nonlinear.vector.jacobian.AbstractLeastSquaresOptimizer
computeCost, computeCovariances, computeResiduals, computeSigma, computeWeightedJacobian, getChiSquare, getRMS, getWeightSquareRoot, optimize, parseOptimizationData, setCost
Methods inherited from class org.apache.commons.math3.optim.nonlinear.vector.JacobianMultivariateVectorOptimizer
computeJacobian
Methods inherited from class org.apache.commons.math3.optim.nonlinear.vector.MultivariateVectorOptimizer
computeObjectiveValue, getTarget, getTargetSize, getWeight
Methods inherited from class org.apache.commons.math3.optim.BaseMultivariateOptimizer
getLowerBound, getStartPoint, getUpperBound
Methods inherited from class org.apache.commons.math3.optim.BaseOptimizer
getConvergenceChecker, getEvaluations, getIterations, getMaxEvaluations, getMaxIterations, incrementEvaluationCount, incrementIterationCount, optimize
-
Constructor Details
-
GaussNewtonOptimizer
Deprecated.Simple constructor with default settings. The normal equations will be solved using LU decomposition.- Parameters:
checker
- Convergence checker.
-
GaussNewtonOptimizer
Deprecated.- Parameters:
useLU
- Iftrue
, the normal equations will be solved using LU decomposition, otherwise they will be solved using QR decomposition.checker
- Convergence checker.
-
-
Method Details
-
doOptimize
Deprecated.Performs the bulk of the optimization algorithm.- Specified by:
doOptimize
in classBaseOptimizer<PointVectorValuePair>
- Returns:
- the point/value pair giving the optimal value of the objective function.
-
org.apache.commons.math3.fitting.leastsquares
package (cf. MATH-1008).