Open czeni opened 1 year ago
And that's why doctests exist
Good catch, cheers, I will check.
I think it's a small bug on the initialisation of lower bound. It ends up being an array only when the member_size
argument is provided and therefore not None
for the initialisation.
https://github.com/torressa/cspy/blob/master/src/python/algorithms/psolgent.py#L150
Describe the bug
The example code for
cspy.PSOLGENT
fails with latest version (1.0.3) and Python3.11 and also with Python3.10.To Reproduce
Expected behavior
The code should pass.
Desktop (please complete the following information):
cspy
== 1.0.3numpy
== 1.24.2networkx
== 3.0Additional context
Example fails with Python3.10 as well.