constraint does not work #599
Closed
faranak1991
started this conversation in
General
Replies: 2 comments
-
I am not sure about your objective function but in fact the constraint violation can be satisfied.
|
Beta Was this translation helpful? Give feedback.
0 replies
-
Thanks for your reply, it works. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I am using the following code to ensure that the offspring x data set satisfies this condition (by define a constraint) :
abs.(3 * x[0] + 1* x[1] + 1* x[2] + 3* x[3] + 3* x[4] + 3* x[5] + 3* x[6] + 6* x[7] + 6* x[8] + 6* x[9] + 9* x[10] ) < 2e-2
However, after tracking the output, I noticed that the individual's parameters x are not satisfying this condition.
Any help to identify and resolve the issue would be greatly appreciated ?
class myProblem(Problem):
def init(self, n_var, lower_bounds, upper_bounds):
super().init(n_var=n_var, n_obj=5, n_ieq_constr=1, xl=lower_bounds, xu=upper_bounds)
Beta Was this translation helpful? Give feedback.
All reactions