Optimization, root finding, and nonlinear equation solving

A post was split to a new topic: Optimization function similarly to Matlab’s fmincon