File tree 1 file changed +15
-3
lines changed 1 file changed +15
-3
lines changed Original file line number Diff line number Diff line change @@ -1162,12 +1162,24 @@ def compute_infeasibilities(self) -> list[int]:
1162
1162
labels .append (int (line_decoded .split (":" )[0 ][2 :]))
1163
1163
return labels
1164
1164
1165
- def print_infeasibilities (self , display_max_terms : None = None ) -> None :
1165
+ def print_infeasibilities (self , display_max_terms : int | None = None ) -> None :
1166
1166
"""
1167
1167
Print a list of infeasible constraints.
1168
1168
1169
- This function requires that the model was solved with `gurobi` and the
1170
- termination condition was infeasible.
1169
+ This function requires that the model was solved using `gurobi`
1170
+ and the termination condition was infeasible.
1171
+
1172
+ Parameters
1173
+ ----------
1174
+ display_max_terms : int, optional
1175
+ The maximum number of infeasible terms to display. If `None`,
1176
+ all infeasible terms will be displayed.
1177
+
1178
+ Returns
1179
+ -------
1180
+ None
1181
+ This function does not return anything. It simply prints the
1182
+ infeasible constraints.
1171
1183
"""
1172
1184
labels = self .compute_infeasibilities ()
1173
1185
self .constraints .print_labels (labels , display_max_terms = display_max_terms )
You can’t perform that action at this time.
0 commit comments