linopy.model.Model.compute_infeasibilities

linopy.model.Model.compute_infeasibilities#

Model.compute_infeasibilities()#

Compute a set of infeasible constraints.

This function requires that the model was solved with gurobi or xpress and the termination condition was infeasible. The solver must have detected the infeasibility during the solve process.

Returns:

labels (list[int]) – Labels of the infeasible constraints.