Title: Constrained optimization of non-linear functions