OptionalconstraintTolerance for checking constraint satisfaction c(p, x) = 0. If ||c(p, x)|| exceeds this value, a warning will be issued. Default: 1e-6
OptionaldcdpAnalytical partial derivative of constraint function with respect to parameters. If provided, this will be used instead of numerical differentiation. Returns a Matrix of size (constraintCount × parameterCount).
OptionaldcdxAnalytical partial derivative of constraint function with respect to states. If provided, this will be used instead of numerical differentiation. Returns a Matrix of size (constraintCount × stateCount). Supports both square (constraintCount == stateCount) and non-square matrices. Non-square systems are solved in a least-squares sense.
OptionaldrdpAnalytical partial derivative of residual function with respect to parameters. If provided, this will be used instead of numerical differentiation. Returns a Matrix of size (residualCount × parameterCount).
OptionaldrdxAnalytical partial derivative of residual function with respect to states. If provided, this will be used instead of numerical differentiation. Returns a Matrix of size (residualCount × stateCount).
OptionallambdaFactor for updating lambda (success: divide, failure: multiply). Default: 10.0
OptionallambdaInitial value of damping parameter lambda. Default: 1e-3
OptionallogLog level for detailed logging output. Controls which log messages are displayed:
If verbose is true and logLevel is not specified, logLevel defaults to INFO. If both logLevel and verbose are specified, logLevel takes precedence. Default: undefined (no logging)
OptionalmaxMaximum number of iterations before stopping. Default: 1000
OptionalonCallback function called at each iteration for progress monitoring. Useful for debugging and monitoring convergence.
OptionalstepStep size for numerical differentiation with respect to parameters. Default: 1e-6
OptionalstepStep size for numerical differentiation with respect to states. Default: 1e-6
OptionaltoleranceTolerance for convergence check (gradient norm, step size, etc.). Default: 1e-6
Levenberg-Marquardt and constrained Levenberg-Marquardt prefer
tolGradient / tolStep / tolResidual. If those are omitted,
this value is used as a common fallback.
OptionaltolTolerance for gradient norm convergence check.
Preferred over tolerance. Default: 1e-6 (or tolerance if set).
OptionaltolTolerance for residual norm convergence check.
Preferred over tolerance. Default: 1e-6 (or tolerance if set).
OptionaltolTolerance for step size convergence check.
Preferred over tolerance. Default: 1e-6 (or tolerance if set).
OptionalverboseEnable verbose logging for debugging. When true, detailed information is logged to console. Default: false
Options for constrained Levenberg-Marquardt algorithm.