System Documentation
    Preparing search index...
    • This function sets the fail value and reason based on the termination status and other parameters.

      The bounds of the solver are checked against the best known bounds of the problem: a solver cannot have a primal bound that is better than the best known dual bound, nor a dual bound that is better than the best known primal bound.

      Parameters

      • terminationStatus: string

        The termination status of the solver.

      • direction: string

        The direction of the problem, "min" or "max".

      • primalBoundSolver: string | number

        The primal bound of the solver.

      • dualBoundSolver: string | number

        The dual bound of the solver.

      • primalBoundProblem: string | number

        The best known primal bound of the problem.

      • dualBoundProblem: string | number

        The best known dual bound of the problem.

      Returns [boolean, string]

      Whether the result failed, and the reason.