Function that computes the cost (objective function value) for constrained optimization. Takes parameter vector and state vector, returns scalar cost value.
Note: The state vector x must satisfy c(p, x) = 0.
Function that computes the cost (objective function value) for constrained optimization. Takes parameter vector and state vector, returns scalar cost value.
Note: The state vector x must satisfy c(p, x) = 0.