cr.sparse.opt.smooth_build2

cr.sparse.opt.smooth_build2(func, grad)

Creates a smooth function with user defined \(f(x)\) and gradient \(g(x)\)

Parameters
  • func – Definition of the smooth function \(f : \RR^n \to \RR\)

  • grad – Definition of the gradient \(g = \nabla f : \RR^n \to \RR^n\)

Returns

A smooth function wrapper

Return type

SmoothFunction