Attempts to get NLOPT to work not going well so far.