예제 #1
0
    def NextSolution(self) -> "bool":
        r"""
        Some solvers (MIP only, not LP) can produce multiple solutions to the
        problem. Returns true when another solution is available, and updates the
        MPVariable* objects to make the new solution queryable. Call only after
        calling solve.

        The optimality properties of the additional solutions found, and whether or
        not the solver computes them ahead of time or when NextSolution() is called
        is solver specific.

        As of 2020-02-10, only Gurobi and SCIP support NextSolution(), see
        linear_solver_interfaces_test for an example of how to configure these
        solvers for multiple solutions. Other solvers return false unconditionally.
        """
        return _pywraplp.Solver_NextSolution(self)
예제 #2
0
 def NextSolution(self) -> "bool":
     return _pywraplp.Solver_NextSolution(self)
예제 #3
0
 def NextSolution(self):
     return _pywraplp.Solver_NextSolution(self)