Nlopt tutorial. Preconditioned truncated Newton.