Open CHH3213 opened 3 years ago
def fun(args): b = args v = lambda x: (x - b)**2 return v
def QPfun(self,ud): def fun(u): return (u - ud)**2 / 2 return fun
lambda函数形式,例如:
嵌套函数形式