implement MathProgBase NLP interface