Rewriting JuMP code in MathOptInterface

Thanks for the help!