(self, x)
return sum((x+0)**2)
Sphere (squared norm) test objective function
Sphere (squared norm) test objective function
Sphere ( squared norm ) test objective function
def sphere(self, x):
        """Sphere (squared norm) test objective function"""
        # return np.random.rand(1)[0]**0 * sum(x**2) + 1 * np.random.rand(1)[0]
        return sum((x+0)**2)
def sphere ( self , x ) : # return np.random.rand(1)[0]**0 * sum(x**2) + 1 * np.random.rand(1)[0] return sum ( ( x + 0 ) ** 2 )