Function that computes the constraint vector for constrained optimization problems.
Takes parameter vector and state vector, returns constraint vector.
The constraint c(p, x) = 0 must be satisfied.
Note: The constraint vector length and state vector length can differ.
Constrained GN/LM accept rectangular ∂c/∂x. Adjoint solvers require
a square implicit-state Jacobian so x(p) is locally unique.
Function that computes the constraint vector for constrained optimization problems. Takes parameter vector and state vector, returns constraint vector. The constraint c(p, x) = 0 must be satisfied.
Note: The constraint vector length and state vector length can differ. Constrained GN/LM accept rectangular ∂c/∂x. Adjoint solvers require a square implicit-state Jacobian so x(p) is locally unique.