예제 #1
0
    def SetCoefficient(self, var: "Variable", coeff: "double") -> "void":
        r"""
        Sets the coefficient of the variable on the constraint.

        If the variable does not belong to the solver, the function just returns,
        or crashes in non-opt mode.
        """
        return _pywraplp.Constraint_SetCoefficient(self, var, coeff)
예제 #2
0
 def SetCoefficient(self, var: 'Variable', coeff: 'double') -> "void":
     return _pywraplp.Constraint_SetCoefficient(self, var, coeff)
예제 #3
0
 def SetCoefficient(self, var, coeff):
     return _pywraplp.Constraint_SetCoefficient(self, var, coeff)
 def SetCoefficient(self, var: "Variable", coeff: "double") -> "void":
     return _pywraplp.Constraint_SetCoefficient(self, var, coeff)