Class RStar<I extends GraphSearchWithNumberBasedAdditivePathEvaluationAndSubPathHeuristic<T,A>,T,A>
- java.lang.Object
-
- ai.libs.jaicore.basic.algorithm.AAlgorithm<I,O>
-
- ai.libs.jaicore.basic.algorithm.ASolutionCandidateIterator<I,O>
-
- ai.libs.jaicore.basic.algorithm.AOptimizer<I,EvaluatedSearchGraphPath<N,A,V>,V>
-
- ai.libs.jaicore.search.core.interfaces.AOptimalPathInORGraphSearch<I,T,A,java.lang.Double>
-
- ai.libs.jaicore.search.algorithms.standard.rstar.RStar<I,T,A>
-
- Type Parameters:
T
- a nodes external label i.e. a state of a problemA
- action (action space of problem)
- All Implemented Interfaces:
java.lang.Iterable<org.api4.java.algorithm.events.IAlgorithmEvent>
,java.util.concurrent.Callable<EvaluatedSearchGraphPath<T,A,java.lang.Double>>
,java.util.Iterator<org.api4.java.algorithm.events.IAlgorithmEvent>
,org.api4.java.ai.graphsearch.problem.IOptimalPathInORGraphSearch<I,EvaluatedSearchGraphPath<T,A,java.lang.Double>,T,A,java.lang.Double>
,org.api4.java.ai.graphsearch.problem.IPathInORGraphSearch<I,EvaluatedSearchGraphPath<T,A,java.lang.Double>,T,A>
,org.api4.java.ai.graphsearch.problem.IPathSearch<I,EvaluatedSearchGraphPath<T,A,java.lang.Double>,T,A>
,org.api4.java.algorithm.IAlgorithm<I,EvaluatedSearchGraphPath<T,A,java.lang.Double>>
,org.api4.java.algorithm.IOptimizationAlgorithm<I,EvaluatedSearchGraphPath<T,A,java.lang.Double>,java.lang.Double>
,org.api4.java.algorithm.ISolutionCandidateIterator<I,EvaluatedSearchGraphPath<T,A,java.lang.Double>>
,org.api4.java.common.control.ICancelable
,org.api4.java.common.control.ILoggingCustomizable
,org.api4.java.common.event.IEventEmitter<java.lang.Object>
,org.api4.java.common.event.IRelaxedEventEmitter
public class RStar<I extends GraphSearchWithNumberBasedAdditivePathEvaluationAndSubPathHeuristic<T,A>,T,A> extends AOptimalPathInORGraphSearch<I,T,A,java.lang.Double>
Implementation of the R* algorithm.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
cancel()
java.lang.String
getLoggerName()
org.api4.java.algorithm.events.IAlgorithmEvent
nextWithException()
void
setLoggerName(java.lang.String name)
-
Methods inherited from class ai.libs.jaicore.search.core.interfaces.AOptimalPathInORGraphSearch
getGoalTester, getGraphGenerator, nextSolutionCandidateEvent, registerSolution
-
Methods inherited from class ai.libs.jaicore.basic.algorithm.AOptimizer
call, getBestScoreKnownToExist, getBestSeenSolution, nextSolutionCandidate, setBestSeenSolution, tellAboutBestScoreKnownToExist, updateBestSeenSolution
-
Methods inherited from class ai.libs.jaicore.basic.algorithm.ASolutionCandidateIterator
collectAllSolutions
-
Methods inherited from class ai.libs.jaicore.basic.algorithm.AAlgorithm
activate, announceTimeoutDetected, avoidReinterruptionOnShutdownOnCurrentThread, checkAndConductTermination, checkTermination, computeTimeoutAware, getActivationTime, getConfig, getDeadline, getId, getInput, getListeners, getNumCPUs, getRemainingTimeToDeadline, getState, getTimeout, getTimeoutPrecautionOffset, hasNext, hasThreadBeenInterruptedDuringShutdown, interruptThreadAsPartOfShutdown, isCanceled, isShutdownInitialized, isStopCriterionSatisfied, isTimeoutDefined, 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 org.api4.java.algorithm.IAlgorithm
call, getConfig, getId, getInput, getNumCPUs, getTimeout, registerListener, setMaxNumThreads, setNumCPUs, setTimeout, setTimeout
-
-
-
-
Constructor Detail
-
RStar
public RStar(I problem, double w, int k, double delta)
- Parameters:
gammaGraphGenerator
-w
-k
-delta
-
-
-
Method Detail
-
nextWithException
public org.api4.java.algorithm.events.IAlgorithmEvent nextWithException() throws java.lang.InterruptedException, org.api4.java.algorithm.exceptions.AlgorithmException, org.api4.java.algorithm.exceptions.AlgorithmExecutionCanceledException, org.api4.java.algorithm.exceptions.AlgorithmTimeoutedException
- Throws:
java.lang.InterruptedException
org.api4.java.algorithm.exceptions.AlgorithmException
org.api4.java.algorithm.exceptions.AlgorithmExecutionCanceledException
org.api4.java.algorithm.exceptions.AlgorithmTimeoutedException
-
setLoggerName
public void setLoggerName(java.lang.String name)
- Specified by:
setLoggerName
in interfaceorg.api4.java.common.control.ILoggingCustomizable
- Overrides:
setLoggerName
in classAOptimalPathInORGraphSearch<I extends GraphSearchWithNumberBasedAdditivePathEvaluationAndSubPathHeuristic<T,A>,T,A,java.lang.Double>
-
getLoggerName
public java.lang.String getLoggerName()
- Specified by:
getLoggerName
in interfaceorg.api4.java.common.control.ILoggingCustomizable
- Overrides:
getLoggerName
in classAOptimalPathInORGraphSearch<I extends GraphSearchWithNumberBasedAdditivePathEvaluationAndSubPathHeuristic<T,A>,T,A,java.lang.Double>
-
cancel
public void cancel()
- Specified by:
cancel
in interfaceorg.api4.java.common.control.ICancelable
- Overrides:
cancel
in classai.libs.jaicore.basic.algorithm.AAlgorithm<I extends GraphSearchWithNumberBasedAdditivePathEvaluationAndSubPathHeuristic<T,A>,EvaluatedSearchGraphPath<T,A,java.lang.Double>>
-
-