Пример #1
0
 def SetHint(self, variables:
             'std::vector< operations_research::MPVariable * > const &',
             values: 'std::vector< double > const &') -> "void":
     return _pywraplp.Solver_SetHint(self, variables, values)
Пример #2
0
 def SetHint(self, variables:
             "std::vector< operations_research::MPVariable * > const &",
             values: "std::vector< double > const &") -> "void":
     r""" Set a hint for solution. If a feasible or almost-feasible solution to the problem is already known, it may be helpful to pass it to the solver so that it can be used. A solver that supports this feature will try to use this information to create its initial feasible solution. Note that it may not always be faster to give a hint like this to the solver. There is also no guarantee that the solver will use this hint or try to return a solution "close" to this assignment in case of multiple optimal solutions."""
     return _pywraplp.Solver_SetHint(self, variables, values)