dot-fit function

Optimise a function using either numerical optimisation or grid search