Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to define a constrained bounds? #498

Open
heliolei opened this issue Aug 8, 2022 · 0 comments
Open

How to define a constrained bounds? #498

heliolei opened this issue Aug 8, 2022 · 0 comments

Comments

@heliolei
Copy link

heliolei commented Aug 8, 2022

Dear all,

My bounds is like this:

current_bounds = (np.array([70.e6, 15., 10.e6,    10.e6]),\
                              np.array([80.e6, 25., 100.e6,  100.e6]))

However, in my optimization problem,

X[:][2] < X[:][3]

should always be constrained within the current bounds for all the particles

How can I realise this in our pyswarms code.

Tnank you in advance

Regrads,

Lei CAI

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant