OptionalconstraintTolerance for ||c(p, x)|| = 0. Default: 1e-6
OptionaldcdpAnalytical ∂c/∂p. Size constraintCount × parameterCount.
OptionaldcdxAnalytical ∂c/∂x. Must be square (constraintCount === stateCount).
Ill-conditioned Jacobians can be sensitive; raise regularization if needed.
OptionaldfdpAnalytical ∂f/∂p. Used instead of finite differences when provided.
OptionaldfdxAnalytical ∂f/∂x. Used instead of finite differences when provided.
OptionallineOptions passed to Strong Wolfe line search.
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.
OptionalregularizationBase Tikhonov regularization for solves involving ∂c/∂x. Default: 0 (an automatic floor may still apply when the Jacobian is singular)
OptionalstepFixed step size used only when useLineSearch is false. Default: 1.0
OptionalstepFinite-difference step for derivatives with respect to parameters. Default: 1e-6
OptionalstepFinite-difference step for derivatives 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.
OptionaluseWhether to use Strong Wolfe line search. Default: true
OptionalverboseEnable verbose logging for debugging. When true, detailed information is logged to console. Default: false
Options for reduced-space BFGS. Line search matches unconstrained BFGS (Strong Wolfe).