Interface DdoStopCriterion

All Superinterfaces:
Predicate<SearchStatistics>, StopCriterion
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface DdoStopCriterion extends StopCriterion
Interface representing a stop criterion specifically for Decision Diagram Optimization (DDO) solvers.

This extends StopCriterion to provide access to DDO-specific statistics such as the total number of MDD nodes or the explored depth.

  • Method Summary

    Modifier and Type
    Method
    Description
    maxExploredDepth(int maxDepth)
    Creates a stop criterion that terminates the search when the depth of the subproblem root being explored (the node popped from the frontier) reaches or exceeds a specified limit.
    Creates a stop criterion that terminates the search when the number of iterations without any lower bound improvement exceeds a specified limit.
    maxTotalMddNodes(long maxNodes)
    Creates a stop criterion that terminates the search when the total number of MDD nodes created exceeds a specified limit.
    default boolean
    boolean
    Evaluates this criterion against the given DDO search statistics.

    Methods inherited from interface java.util.function.Predicate

    and, negate, or
  • Method Details

    • maxTotalMddNodes

      static DdoStopCriterion maxTotalMddNodes(long maxNodes)
      Creates a stop criterion that terminates the search when the total number of MDD nodes created exceeds a specified limit.
      Parameters:
      maxNodes - the maximum allowed number of MDD nodes
      Returns:
      a DdoStopCriterion for maximum total nodes
    • maxIterWithoutLowerBoundImprovement

      static DdoStopCriterion maxIterWithoutLowerBoundImprovement(int maxIter)
      Creates a stop criterion that terminates the search when the number of iterations without any lower bound improvement exceeds a specified limit.
      Parameters:
      maxIter - the maximum allowed number of iterations since the last lower bound improvement
      Returns:
      a DdoStopCriterion based on iterations since last lower bound improvement
    • maxExploredDepth

      static DdoStopCriterion maxExploredDepth(int maxDepth)
      Creates a stop criterion that terminates the search when the depth of the subproblem root being explored (the node popped from the frontier) reaches or exceeds a specified limit.
      Parameters:
      maxDepth - the maximum allowed depth for a subproblem root
      Returns:
      a DdoStopCriterion for maximum explored depth
    • testDdoStats

      boolean testDdoStats(DdoStats stats)
      Evaluates this criterion against the given DDO search statistics.
      Parameters:
      stats - the DDO search statistics
      Returns:
      true if the search should be terminated, false otherwise
    • test

      default boolean test(SearchStatistics stats)
      Specified by:
      test in interface Predicate<SearchStatistics>
      Throws:
      IllegalArgumentException - if the provided statistics are not an instance of DdoStats