Text this: A Versatile procedure for optimisation of a nonlinear