Fenchel–Rockafellar Optimality Conditions