new kwarg for reduced functional; save_functional_values defaults to False but  writes j to functional_values.txt on each iteration if True
Merge branch 'master' of https://github.com/funsim/OpenTidalFarm
synthetic test for basinhopping