Hi!
Thank you for pointing it out! Yes, there is a question of growing API - both a problem and a sign that its capabilities improve. However, that particular API, one that works with nonlinear constraints, behaves as expected: is built around "modify state" semantics. You can "set" constraints using one of two ways, you can "add" constraints (in upcoming release), you can modify constraints that were already added by rewriting them with another "set" or by "adding" something. It is done on purpose, because it allows reusing the same optimizer object when the task changes.
Sergey
|