def f ( x , a , c ) : v = g ( x , a , c ) return v . dot ( v )
python relu gradient function
Objective function ( sum of squared residuals )
def f(x, a, c):
    """ Objective function (sum of squared residuals) """
    v = g(x, a, c)
    return v.dot(v)