vector constraint function now working, but interface to NLopt isn't