Class UCT<N,​A>

  • All Implemented Interfaces:
    java.lang.Iterable<org.api4.java.algorithm.events.IAlgorithmEvent>, java.util.concurrent.Callable<IPolicy<N,​A>>, java.util.Iterator<org.api4.java.algorithm.events.IAlgorithmEvent>, org.api4.java.algorithm.IAlgorithm<IMDP<N,​A,​java.lang.Double>,​IPolicy<N,​A>>, org.api4.java.common.control.ICancelable, org.api4.java.common.control.ILoggingCustomizable

    public class UCT<N,​A>
    extends MCTS<N,​A>
    • Constructor Summary

      Constructors 
      Constructor Description
      UCT​(IMDP<N,​A,​java.lang.Double> input, double maxIterations, double gamma, double epsilon, java.util.Random r, boolean tabooExhaustedNodes)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      UCBPolicy<N,​A> call()  
      UCBPolicy<N,​A> getTreePolicy()  
      • Methods inherited from class ai.libs.jaicore.basic.algorithm.AAlgorithm

        activate, announceTimeoutDetected, avoidReinterruptionOnShutdownOnCurrentThread, cancel, checkAndConductTermination, checkTermination, computeTimeoutAware, getActivationTime, getConfig, getId, getInput, getListeners, getNumCPUs, getRemainingTimeToDeadline, getState, getTimeout, getTimeoutPrecautionOffset, hasNext, hasThreadBeenInterruptedDuringShutdown, interruptThreadAsPartOfShutdown, isCanceled, isShutdownInitialized, isStopCriterionSatisfied, isTimeouted, iterator, next, post, registerActiveThread, registerListener, resolveShutdownInterruptOnCurrentThread, setConfig, setDeadline, setMaxNumThreads, setNumCPUs, setState, setTimeout, setTimeout, setTimeoutPrecautionOffset, shutdown, terminate, unregisterActiveThread, unregisterThreadAndShutdown
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.lang.Iterable

        forEach, spliterator
      • Methods inherited from interface java.util.Iterator

        forEachRemaining, remove
    • Constructor Detail

      • UCT

        public UCT​(IMDP<N,​A,​java.lang.Double> input,
                   double maxIterations,
                   double gamma,
                   double epsilon,
                   java.util.Random r,
                   boolean tabooExhaustedNodes)
    • Method Detail

      • call

        public UCBPolicy<N,​A> call()
                                  throws org.api4.java.algorithm.exceptions.AlgorithmTimeoutedException,
                                         java.lang.InterruptedException,
                                         org.api4.java.algorithm.exceptions.AlgorithmExecutionCanceledException,
                                         org.api4.java.algorithm.exceptions.AlgorithmException
        Specified by:
        call in interface java.util.concurrent.Callable<N>
        Specified by:
        call in interface org.api4.java.algorithm.IAlgorithm<N,​A>
        Overrides:
        call in class MCTS<N,​A>
        Throws:
        org.api4.java.algorithm.exceptions.AlgorithmTimeoutedException
        java.lang.InterruptedException
        org.api4.java.algorithm.exceptions.AlgorithmExecutionCanceledException
        org.api4.java.algorithm.exceptions.AlgorithmException