You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The example above results in the following. Notice how the population member #0 is [-0.504554, 0.87294, 0.639481] but the fitness function gets [-0.50455375 -0.50455375 -0.50455375].
FITNESS EVAL: x = [-0.50455375 -0.50455375 -0.50455375], cost = 0.7637234652148235
FITNESS EVAL: x = [0.4426457 0.4426457 0.4426457], cost = 0.5878056348538054
FITNESS EVAL: x = [-0.47532954 -0.47532954 -0.47532954], cost = 0.6778145209225833
FITNESS EVAL: x = [-0.29921424 -0.29921424 -0.29921424], cost = 0.2685874763420541
FITNESS EVAL: x = [0.63765334 0.63765334 0.63765334], cost = 1.219805338218631
Problem name: <class '__main__.sphere_function'>
C++ class name: pybind11::object
Global dimension: 3
Integer dimension: 0
Fitness dimension: 1
Number of objectives: 1
Equality constraints dimension: 0
Inequality constraints dimension: 0
Lower bounds: [-1, -1, -1]
Upper bounds: [1, 1, 1]
Has batch fitness evaluation: false
Has gradient: false
User implemented gradient sparsity: false
Has hessians: false
User implemented hessians sparsity: false
Fitness evaluations: 5
Thread safety: none
Population size: 5
List of individuals:
#0:
ID: 14351618211829196000
Decision vector: [-0.504554, 0.87294, 0.639481]
Fitness vector: [0.763723]
#1:
ID: 4233680892357765143
Decision vector: [0.442646, 0.462569, -0.970743]
Fitness vector: [0.587806]
#2:
ID: 457977541108690035
Decision vector: [-0.47533, 0.97677, -0.805264]
Fitness vector: [0.677815]
#3:
ID: 3780462174932513958
Decision vector: [-0.299214, -0.134968, -0.699614]
Fitness vector: [0.268587]
#4:
ID: 12888162120884326344
Decision vector: [0.637653, 0.840588, -0.0665339]
Fitness vector: [1.21981]
Champion decision vector: [-0.299214, -0.134968, -0.699614]
Champion fitness: [0.268587]
With numpy 2.x, the fitness function is called with the wrong values in the decision vector x.
The example above results in the following. Notice how the population member #0 is [-0.504554, 0.87294, 0.639481] but the fitness function gets [-0.50455375 -0.50455375 -0.50455375].
On numpy 1.x, we get :
The text was updated successfully, but these errors were encountered: