Exemple #1
0
    def LookupConstraint(self, constraint_name: "std::string const &") -> "operations_research::MPConstraint *":
        r"""
         Looks up a constraint by name, and returns nullptr if it does not exist.

        The first call has a O(n) complexity, as the constraint name index is
        lazily created upon first use. Will crash if constraint names are not
        unique.
        """
        return _pywraplp.Solver_LookupConstraint(self, constraint_name)
 def LookupConstraint(
     self, constraint_name: 'std::string const &'
 ) -> "operations_research::MPConstraint *":
     return _pywraplp.Solver_LookupConstraint(self, constraint_name)
Exemple #3
0
 def LookupConstraint(self, constraint_name):
     return _pywraplp.Solver_LookupConstraint(self, constraint_name)