Ejemplo n.º 1
0
 def LookupVariable(self, var_name: "std::string const &") -> "operations_research::MPVariable *":
     r"""
     Looks up a variable by name, and returns nullptr if it does not exist. The
     first call has a O(n) complexity, as the variable name index is lazily
     created upon first use. Will crash if variable names are not unique.
     """
     return _pywraplp.Solver_LookupVariable(self, var_name)
Ejemplo n.º 2
0
 def LookupVariable(
     self, var_name: 'std::string const &'
 ) -> "operations_research::MPVariable *":
     return _pywraplp.Solver_LookupVariable(self, var_name)
Ejemplo n.º 3
0
 def LookupVariable(self, var_name):
     return _pywraplp.Solver_LookupVariable(self, var_name)