fast-cma-es
fast-cma-es copied to clipboard
C++ algorithms return None on Windows
Hi Dietmar,
I installed fast-cma-es on Windows 11 following the instructions in README (X64 C++ runtime libraries were also installed). Tried a small optimization:
import numpy as np
from scipy.optimize import Bounds
from fcmaes import cmaescpp, cmaes
def obj(x):
return np.sum(x**2)
bounds = Bounds([-1, -1], [1, 1])
result = cmaescpp.minimize(obj, bounds)
print(result)
and got the following result:
success: False
status: -1
fun: 1.7976931348623157e+308
x: None
nit: 0
nfev: 0
The python algorithm works (cmaes). Output:
success: True
status: 4
fun: 3.7194596397089263e-19
x: [ 5.707e-10 -2.152e-10]
nit: 78
nfev: 1209
What do you think could be the cause? Thanks :)