You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/pyscipopt/scip.pyx
+3-2Lines changed: 3 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1979,18 +1979,19 @@ cdef class Model:
1979
1979
stickingatnode=False):
1980
1980
"""Add a linear or quadratic constraint.
1981
1981
1982
-
:param cons: list of coefficients
1982
+
:param cons: constraint object
1983
1983
:param name: the name of the constraint, generic name if empty (Default value = '')
1984
1984
:param initial: should the LP relaxation of constraint be in the initial LP? (Default value = True)
1985
1985
:param separate: should the constraint be separated during LP processing? (Default value = True)
1986
1986
:param enforce: should the constraint be enforced during node processing? (Default value = True)
1987
-
:param check: should the constraint be checked during for feasibility? (Default value = True)
1987
+
:param check: should the constraint be checked for feasibility? (Default value = True)
1988
1988
:param propagate: should the constraint be propagated during node processing? (Default value = True)
1989
1989
:param local: is the constraint only valid locally? (Default value = False)
1990
1990
:param modifiable: is the constraint modifiable (subject to column generation)? (Default value = False)
1991
1991
:param dynamic: is the constraint subject to aging? (Default value = False)
1992
1992
:param removable: should the relaxation be removed from the LP due to aging or cleanup? (Default value = False)
1993
1993
:param stickingatnode: should the constraint always be kept at the node where it was added, even if it may be moved to a more global node? (Default value = False)
1994
+
:return The added @ref scip#Constraint "Constraint" object.
1994
1995
1995
1996
"""
1996
1997
assertisinstance(cons, ExprCons), "given constraint is not ExprCons but %s"% cons.__class__.__name__
0 commit comments