I want to visualize all linear constraint in my JuMP model. I used ( model.linconstr) command but it gives only a portion of my constraints. I have 454 constraints but (model.linconstr) shows only 36 of these constraints. There is a question mark in the middle of the screen which I think is the sign for not showing all constraints. Can you please let me know how I can visualize all the constraints in my model. Thanks in advance!
Thanks for the response.
Is there any way to show variables with their corresponding bounds in JuMP model.
I tried following but I got an error (i.e., ERROR: type Model has no field variables).
Note that this is an internal implementation detail, and so you shouldn’t rely on these fields staying the same between JuMP versions. In fact, in JuMP 0.19 (the next release), virtually all of these fields change!
The best way to query variable bounds is with JuMP.getupperbound (also getlowerbound).
If you want to visually inspect the model, writing it out as an LP file is best.
Thanks for the response!
I tried “JuMP.getupperbound(x) where x is a variable in my model” but I encountered an error (i.e., x not defined). Can you please explain a little more how I can visually inspect variable bounds after building the model.
Thanks in advance!