phase 1 of nloptr