implement new MathProgBase API
closes #12