Class IntegerSolver.NodeStatistics

  • Enclosing class:
    IntegerSolver

    static final class IntegerSolver.NodeStatistics
    extends java.lang.Object
    When a node is determined to be a leaf - no further branching - what was the reason?
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.util.concurrent.atomic.LongAdder myAbandoned  
      private java.util.concurrent.atomic.LongAdder myExhausted  
      private java.util.concurrent.atomic.LongAdder myInfeasible  
      private java.util.concurrent.atomic.LongAdder myInteger  
    • Constructor Summary

      Constructors 
      Constructor Description
      NodeStatistics()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      (package private) boolean abandoned()
      Node was created, and deferred, but then abandoned and never evaluated (sub/node problem never solved).
      (package private) long countEvaluatedNodes()  
      (package private) int countIntegerSolutions()  
      (package private) long countSkippedNodes()  
      (package private) long countTotalNodes()  
      (package private) boolean exhausted()
      Node evaluated, and solution not integer, but estimate NOT possible to find better integer solution.
      (package private) boolean failed()
      Failed to solve node problem because of some unexpected error – not because the node was infeasible.
      (package private) boolean infeasible()
      Node problem infeasible
      (package private) boolean integer()
      Integer solution found
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • myAbandoned

        private final java.util.concurrent.atomic.LongAdder myAbandoned
      • myExhausted

        private final java.util.concurrent.atomic.LongAdder myExhausted
      • myInfeasible

        private final java.util.concurrent.atomic.LongAdder myInfeasible
      • myInteger

        private final java.util.concurrent.atomic.LongAdder myInteger
    • Constructor Detail

      • NodeStatistics

        NodeStatistics()
    • Method Detail

      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • abandoned

        boolean abandoned()
        Node was created, and deferred, but then abandoned and never evaluated (sub/node problem never solved).
      • countEvaluatedNodes

        long countEvaluatedNodes()
      • countIntegerSolutions

        int countIntegerSolutions()
      • countSkippedNodes

        long countSkippedNodes()
      • countTotalNodes

        long countTotalNodes()
      • exhausted

        boolean exhausted()
        Node evaluated, and solution not integer, but estimate NOT possible to find better integer solution.
      • failed

        boolean failed()
        Failed to solve node problem because of some unexpected error – not because the node was infeasible.
      • infeasible

        boolean infeasible()
        Node problem infeasible
      • integer

        boolean integer()
        Integer solution found