nlopt formula