Try our new documentation site (beta).
Filter Content By
Version
Text Search
${sidebar_list_label} - Back
Filter by Language
Constr.setAttr()
setAttr ( attrname, newvalue )
Set the value of a constraint attribute. Note that attribute changes are handled in a lazy fashion. The effect of a change isn't visible until the next call to Model.update or Model.optimize.
The full list of available attributes can be found in the Attributes section.
Arguments:
attrname: The attribute being modified.
newvalue: The desired new value of the attribute.
Example usage:
constr.setAttr(GRB.attr.rhs, 0.0) constr.setAttr("rhs", 0.0)