Class BRUEPolicy<N,A>
- java.lang.Object
-
- ai.libs.jaicore.search.algorithms.mdp.mcts.brue.BRUEPolicy<N,A>
-
- Type Parameters:
N
-A
-
- All Implemented Interfaces:
IPathUpdatablePolicy<N,A,java.lang.Double>
,IPolicy<N,A>
public class BRUEPolicy<N,A> extends java.lang.Object implements IPathUpdatablePolicy<N,A,java.lang.Double>
This policy implements the BRUE algorithm presented in
-
-
Constructor Summary
Constructors Constructor Description BRUEPolicy(boolean maximize)
BRUEPolicy(boolean maximize, int timeHorizon, java.util.Random random)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description A
getAction(N node, java.util.Collection<A> actions)
int
getSwitchingPoint(int n)
void
updatePath(org.api4.java.datastructure.graph.ILabeledPath<N,A> path, java.util.List<java.lang.Double> scores)
-
-
-
Method Detail
-
getAction
public A getAction(N node, java.util.Collection<A> actions) throws ActionPredictionFailedException
- Specified by:
getAction
in interfaceIPolicy<N,A>
- Throws:
ActionPredictionFailedException
-
updatePath
public void updatePath(org.api4.java.datastructure.graph.ILabeledPath<N,A> path, java.util.List<java.lang.Double> scores)
- Specified by:
updatePath
in interfaceIPathUpdatablePolicy<N,A,java.lang.Double>
-
getSwitchingPoint
public int getSwitchingPoint(int n)
-
-