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

Some problems of cpso_s algorithm #97

Closed
Wooooov opened this issue Jan 9, 2024 · 2 comments · Fixed by #98
Closed

Some problems of cpso_s algorithm #97

Wooooov opened this issue Jan 9, 2024 · 2 comments · Fixed by #98

Comments

@Wooooov
Copy link

Wooooov commented Jan 9, 2024

Desciption:

When calling the CPSOS algorithm from evoX, the following issues may arise:

ValueError: Incompatible shapes for broadcasting: shapes=[(2, 100), (2,)]

It seems that there is an issue with the cpso_s.py at line 100.
In the comments of this algorithm, the shape of 'fitness' is 'dim, pop_size', which is different from how it's done in other algorithms?

Additionally, there might be a small error in the EvoX tutorial.
This algorithm should be named 'CPSO_S' instead of 'CLPSO_S'

 Algorithms 
    - Single-objective 
       - 【CLPSO_S】
@BillHuang2001
Copy link
Collaborator

Thanks for the report, it's indeed a bug. We will try to fix it ASAP.

@BillHuang2001 BillHuang2001 mentioned this issue Jan 10, 2024
5 tasks
@BillHuang2001
Copy link
Collaborator

The latest version v0.6.3 contains the fix for this algorithm.

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

Successfully merging a pull request may close this issue.

2 participants