Skip to content

Commit 77050b5

Browse files
Fix documentation for addCons
1 parent 2eba0f4 commit 77050b5

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/pyscipopt/scip.pyx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1979,18 +1979,19 @@ cdef class Model:
19791979
stickingatnode=False):
19801980
"""Add a linear or quadratic constraint.
19811981
1982-
:param cons: list of coefficients
1982+
:param cons: constraint object
19831983
:param name: the name of the constraint, generic name if empty (Default value = '')
19841984
:param initial: should the LP relaxation of constraint be in the initial LP? (Default value = True)
19851985
:param separate: should the constraint be separated during LP processing? (Default value = True)
19861986
: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)
19881988
:param propagate: should the constraint be propagated during node processing? (Default value = True)
19891989
:param local: is the constraint only valid locally? (Default value = False)
19901990
:param modifiable: is the constraint modifiable (subject to column generation)? (Default value = False)
19911991
:param dynamic: is the constraint subject to aging? (Default value = False)
19921992
:param removable: should the relaxation be removed from the LP due to aging or cleanup? (Default value = False)
19931993
: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.
19941995
19951996
"""
19961997
assert isinstance(cons, ExprCons), "given constraint is not ExprCons but %s" % cons.__class__.__name__

0 commit comments

Comments
 (0)