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
-
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
Please sign in to leave a comment.
Comments
1 comment