rJonatan
rJonatan

Reputation: 41

Openmdao: How can I deactivate a constraint?

Let's say I want to run multiple optimization setups, where the difference between them is which constraints apply. Is there a way to deactivate a constraint that has been added to the driver, or do I need to redefine the driver for every case?

Upvotes: 0

Views: 62

Answers (1)

Justin Gray
Justin Gray

Reputation: 5710

As of OpenMDAO V2.2, there is no API methods to remove constraints. The simplest thing to do is simply to re-instantiate the problem/group.

Upvotes: 1

Related Questions