In the Gurobi methods we have a little snippet which examines which constraints are currently active, then if debugging is on reports that back to the user.
active_const: bool = False
for c in model.getConstrs():
if abs(c.Slack) > robust_gap_tol:
active_const = True
if debug:
print(f"{c.ConstrName} active, slack {c.Slack:g}")
if debug and not active_const:
print("No active constraints!")
Similar was originally intended as part of #10, but wasn't essential to get the model working. It would be nice to implement the same in HiGS using getBasis (see Python and fuller C docs).
In the Gurobi methods we have a little snippet which examines which constraints are currently active, then if debugging is on reports that back to the user.
Similar was originally intended as part of #10, but wasn't essential to get the model working. It would be nice to implement the same in HiGS using
getBasis
(see Python and fuller C docs).