implement MathProgBase nonlinear interface