Hi everyone, after a quick search here and the API, I have not seen this question addressed to my liking so let me raise it:
How to get the problem data in canonical form min dot(C,x) subject to Ax=b, that is from a model return the data C,A,b? This is very similar to print(model) or write a model to file. Also I dont know if this should be a MOI question instead of JuMP.
How about other problems where there are canonical forms like polynomial optimization?
We currently don’t provide tools to access the matrix data because there are a variety of different forms people could want. However, there’s a work-in-process: https://github.com/jump-dev/MatrixOptInterface.jl.
For now, you can access the constraints in the model using: Constraints · JuMP