return pow(1 - 0.1 * x(0), 2) + 100 * pow(x(1) - 0.5 * x(0) * x(0), 2) + pow(1 - 0.1 * x(2), 2) + 100 * pow(x(3) - 0.5 * x(2) * x(2), 2); ...
A comparison between two methods of the nonlinear optimization: Sequential Quadratic Programming and Semismooth Newton - viqizevic/SQP-vs.-Semismooth-Newton ...