max_ constraints are not displayed
AnsweredHi,
I'm new to gurobi and trying to write codes to solve my problem.
One of my constraints includes max function. So, I use max_ function with model.addConstrs to add constraints.
After adding the constraints and updating the model, I tried to display my constraints with model.display().
However, I only can find the linear constraints and max_ constraints are not displayed.
I also tried this code and found that max_ constraints are not displayed.
https://support.gurobi.com/hc/en-us/community/posts/360076815192/comments/360014184052
Is this normal behavior or am I missing something?
Thanks
-
Official comment
This post is more than three years old. Some information may not be up to date. For current information, please check the Gurobi Documentation or Knowledge Base. If you need more help, please create a new post in the community forum, or try Gurobot, our chatbot interface offering instant, expert-level support. -
If you want to check your model, please use Model.write() for example model.write("check.lp");
display() is not a provided Python API function.0
Post is closed for comments.
Comments
2 comments