Ejemplo n.º 1
0
    def VerifySolution(self, tolerance: "double", log_errors: "bool") -> "bool":
        r"""
        Advanced usage: Verifies the *correctness* of the solution.

        It verifies that all variables must be within their domains, all
        constraints must be satisfied, and the reported objective value must be
        accurate.

        Usage:
        - This can only be called after Solve() was called.
        - "tolerance" is interpreted as an absolute error threshold.
        - For the objective value only, if the absolute error is too large,
          the tolerance is interpreted as a relative error threshold instead.
        - If "log_errors" is true, every single violation will be logged.
        - If "tolerance" is negative, it will be set to infinity().

        Most users should just set the --verify_solution flag and not bother using
        this method directly.
        """
        return _pywraplp.Solver_VerifySolution(self, tolerance, log_errors)
Ejemplo n.º 2
0
 def VerifySolution(self, tolerance: 'double',
                    log_errors: 'bool') -> "bool":
     return _pywraplp.Solver_VerifySolution(self, tolerance, log_errors)
Ejemplo n.º 3
0
 def VerifySolution(self, tolerance, log_errors):
     return _pywraplp.Solver_VerifySolution(self, tolerance, log_errors)
 def VerifySolution(self, tolerance: "double",
                    log_errors: "bool") -> "bool":
     return _pywraplp.Solver_VerifySolution(self, tolerance, log_errors)