Equality Constraint format in NLopt

Please read Please read: make it easier to help you, and remember to include a minimal working example.

It’s likely because your function a takes arguments x and grad, but doesn’t use them. Instead, it uses A which isn’t defined.

1 Like