Class GaussNewtonOptimizer
java.lang.Object
org.apache.commons.math.optimization.general.AbstractLeastSquaresOptimizer
org.apache.commons.math.optimization.general.GaussNewtonOptimizer
- All Implemented Interfaces:
DifferentiableMultivariateVectorialOptimizer
Gauss-Newton least-squares solver.
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.math.optimization.general.AbstractLeastSquaresOptimizer
DEFAULT_MAX_ITERATIONS -
Constructor Summary
ConstructorsConstructorDescriptionGaussNewtonOptimizer(boolean useLU) Simple constructor with default settings. -
Method Summary
Methods inherited from class org.apache.commons.math.optimization.general.AbstractLeastSquaresOptimizer
getChiSquare, getConvergenceChecker, getCovariances, getEvaluations, getIterations, getJacobianEvaluations, getMaxEvaluations, getMaxIterations, getRMS, guessParametersErrors, optimize, setConvergenceChecker, setMaxEvaluations, setMaxIterations
-
Constructor Details
-
GaussNewtonOptimizer
public GaussNewtonOptimizer(boolean useLU) Simple constructor with default settings.The convergence check is set to a
SimpleVectorialValueCheckerand the maximal number of evaluation is set toAbstractLeastSquaresOptimizer.DEFAULT_MAX_ITERATIONS.- Parameters:
useLU- if true, the normal equations will be solved using LU decomposition, otherwise they will be solved using QR decomposition
-
-
Method Details
-
doOptimize
public VectorialPointValuePair doOptimize() throws FunctionEvaluationException, OptimizationException, IllegalArgumentException
-