Convex function with rapidly changing Hessian, or non-continuous Hessian

238 Views Asked by At

Can someone give some examples of convex functions with positive semi-definite Hessian, where the Hessian is non-continuous everywhere?

1

There are 1 best solutions below

3
On

How about for example:

$$ f(x) = \mathbf 1_{x\le 0} {x^2\over 2} + \mathbf 1_{x\ge 0} x^2 $$

blue line is the function, green is gradient, red is hessian. I think it meets your requirements.

enter image description here