General Non-linear Optimization