You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for your issue. It's very hard for black-box optimization to support black-box equality constraints, as the inner algorithm does not know how the constraint values are exactly computed. For your question, while the constraint value is directly computed by the input values (ws[0-2]), we suggest defining only 2 parameters in the search space, so that the third parameter can be represented by 1-ws[0]-ws[1]. We hope this can solve your problem.
Describe the bug
Here is my code, I want the sum of these three parameters to be 1, I tried adding constraints of both 1-sum(ws) and sum(ws)-1 but it doesn't work
The text was updated successfully, but these errors were encountered: