Interface LeastSquaresProblem
- All Superinterfaces:
OptimizationProblem<LeastSquaresProblem.Evaluation>
- All Known Implementing Classes:
LeastSquaresAdapter
The data necessary to define a non-linear least squares problem.
Includes the observed values, computed model function, and
convergence/divergence criteria. Weights are implicit in LeastSquaresProblem.Evaluation.getResiduals()
and LeastSquaresProblem.Evaluation.getJacobian()
.
Instances are typically either created progressively using a builder
or created at once using a factory
.
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
An evaluation of aLeastSquaresProblem
at a particular point. -
Method Summary
Modifier and TypeMethodDescriptionevaluate
(RealVector point) Evaluate the model at the specified point.int
Get the number of observations (rows in the Jacobian) in this problem.int
Get the number of parameters (columns in the Jacobian) in this problem.getStart()
Gets the initial guess.Methods inherited from interface org.hipparchus.optim.OptimizationProblem
getConvergenceChecker, getEvaluationCounter, getIterationCounter
-
Method Details
-
getStart
RealVector getStart()Gets the initial guess.- Returns:
- the initial guess values.
-
getObservationSize
int getObservationSize()Get the number of observations (rows in the Jacobian) in this problem.- Returns:
- the number of scalar observations
-
getParameterSize
int getParameterSize()Get the number of parameters (columns in the Jacobian) in this problem.- Returns:
- the number of scalar parameters
-
evaluate
Evaluate the model at the specified point.- Parameters:
point
- the parameter values.- Returns:
- the model's value and derivative at the given point.
- Throws:
MathIllegalStateException
- if the maximal number of evaluations (of the model vector function) is exceeded.
-