LMOptimizer

class ssapy.rvsampler.LMOptimizer(probfn, initRV, fracstep=[1e-08, 1e-08, 1e-08, 1e-09, 1e-09, 1e-09], absstep=[1, 1, 1, 1e-06, 1e-06, 1e-06], orbitattr=None)[source][source]

Bases: object

Optimizer that employs Levenberg-Marquardt least-squares fitting.

Parameters:
  • probfn (RVProbability) – The RVProbability object that has both an epoch attribute to use for the orbit fitting model, and a chi method to use for the fit evaluation.

  • initRV (array_like (6,)) – Initial position and velocity. Essentially a single output from one of the initializers above.

result[source]

Most recently run result object. Could be useful for inspecting error estimates or success/failure conditions.

Type:

lmfit.MinimizerResult

optimize()[source][source]

Return the optimized parameters list [r, v]

Methods Summary

optimize([usejac])

Run the optimizer and return the resulting fit parameters.

Methods Documentation

optimize(usejac=True, **fit_kws)[source][source]

Run the optimizer and return the resulting fit parameters.

Returns:

fit – Least-squares fit as [x, y, z, vx, vy, vz] in meters, and meters/second.

Return type:

(6,) array_like