pablormier / yabox

Yet another black-box optimization library for Python
Apache License 2.0
136 stars 15 forks source link

Typo in de.py #41

Closed cypark0411 closed 4 years ago

cypark0411 commented 4 years ago

Your codes are very helpful to solve my projects.

While I applied your code, I found a typo that you might know already.

Typo part: de.py -> class DE -> def solve

'return' might be changed as follows:

Original code: return self.denormalize(P[idx].reshape(-1, 1)), fitness[idx]

Fixed: return self.denormalize(P[idx].reshape(1, -1)), fitness[idx]

pablormier commented 4 years ago

Fixed in v1.1.0. Thanks!