ParentFull threadAttrecomet·The correct function to minimize would be θ(-f(x))*(-f(x)), using the https://en.wikipedia.org/wiki/Heaviside_step_functionView on HN