Newton-Raphson Scheme
Vector C with the values of the equalities and the active inequalities constraints.
Matrix A, Jacobian, derivative of the vector C.
Full Newton step too far from linear approximation.
Check constraints after the full Newton step.
Halve the step length if any constraint increased more than a small threshold.