Skip to content

Fix constraint conversion.

NonlinearConstraint's fourth argument is jac, not keep_feasible.

For the future, while this seems mathematically equivalent, it isn't numerically. Algorithms treat linear and non-linear constraints differently. For example, some only handle the former. Even if they handle the latter, they're treated in different ways. It may be a good idea to have a CachedLinearConstraint.

Merge request reports

Loading