Stav dette: A Versatile procedure for optimisation of a nonlinear