nlopt: new formula

Closes #644.