Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

NonlinearOptimizerParams

NonlinearOptimizerParams holds convergence, iteration, ordering, verbosity, and linear-solver settings shared by GTSAM’s batch nonlinear optimizers. Concrete optimizer parameter classes inherit this interface.

Open In Colab

Creating and configuring the common parameters

The base object is constructible for inspection, but applications normally create GaussNewtonParams, DoglegParams, or LevenbergMarquardtParams and use the inherited setters.

Linear solver and ordering

setLinearSolverType() accepts names such as MULTIFRONTAL_CHOLESKY and SEQUENTIAL_QR. Query methods identify the selected solver family. An explicit Ordering can override the automatic ordering for reproducibility or known sparsity structure.

Iteration hooks

Python can assign iterationHook to receive (iteration, error_before, error_after) after each iteration. This is useful for logging without increasing optimizer verbosity.

Source

NonlinearOptimizerParams.h

AI assistance caveat

AI was used to help draft this documentation, and inaccuracies could be present.