for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
"""Implementation of Sphere function."""
__all__ = ['Sphere']
class Sphere(object):
@classmethod
def function(cls):
def evaluate(D, sol):
val = 0.0
for i in range(D):
val = val + sol[i] * sol[i]
return val
return evaluate