Example #1
0
    def set_is_lazy(self, laziness: "bool") -> "void":
        r"""
        Advanced usage: sets the constraint "laziness".

        **This is only supported for SCIP and has no effect on other
        solvers.**

        When **laziness** is true, the constraint is only considered by the Linear
        Programming solver if its current solution violates the constraint. In this
        case, the constraint is definitively added to the problem. This may be
        useful in some MIP problems, and may have a dramatic impact on performance.

        For more info see: http://tinyurl.com/lazy-constraints.
        """
        return _pywraplp.Constraint_set_is_lazy(self, laziness)
 def set_is_lazy(self, laziness: 'bool') -> "void":
     return _pywraplp.Constraint_set_is_lazy(self, laziness)
Example #3
0
 def set_is_lazy(self, laziness):
     return _pywraplp.Constraint_set_is_lazy(self, laziness)