getRow ( constr )
Retrieve the list of variables that participate in a constraint, and the associated coefficients. The result is returned as a LinExpr object.
constr: The constraint of interest. A Constr object, typically obtained from addConstr or getConstrs.
A LinExpr object that captures the set of variables that participate in the constraint.
constrs = model.getConstrs() print(model.getRow(constrs))