Class GraphSearchProblemInputToGraphSearchWithSubpathEvaluationInputTransformerViaRDFS<N,A,V extends java.lang.Comparable<V>>
- java.lang.Object
-
- ai.libs.jaicore.search.problemtransformers.GraphSearchProblemInputToGraphSearchWithSubpathEvaluationInputTransformer<N,A,V>
-
- ai.libs.jaicore.search.problemtransformers.GraphSearchProblemInputToGraphSearchWithSubpathEvaluationInputTransformerViaRDFS<N,A,V>
-
- Type Parameters:
N- node typeA- arc typeV- type of node evaluations
- All Implemented Interfaces:
ai.libs.jaicore.basic.algorithm.reduction.AlgorithmicProblemReduction<org.api4.java.ai.graphsearch.problem.IPathSearchInput<N,A>,EvaluatedSearchGraphPath<N,A,V>,GraphSearchWithSubpathEvaluationsInput<N,A,V>,EvaluatedSearchGraphPath<N,A,V>>
public class GraphSearchProblemInputToGraphSearchWithSubpathEvaluationInputTransformerViaRDFS<N,A,V extends java.lang.Comparable<V>> extends GraphSearchProblemInputToGraphSearchWithSubpathEvaluationInputTransformer<N,A,V>
Takes a path search problem and uses the path evaluator as the evaluator within the random completion based node evaluator.
-
-
Constructor Summary
Constructors Constructor Description GraphSearchProblemInputToGraphSearchWithSubpathEvaluationInputTransformerViaRDFS(org.api4.java.ai.graphsearch.problem.pathsearch.pathevaluation.IPathEvaluator<N,A,V> preferredNodeEvaluator, java.util.function.Predicate<N> prioritizedNodesInRandomCompletion, java.util.Random random, int numSamples, int timeoutForSingleCompletionEvaluationInMS, int timeoutForNodeEvaluationInMS)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GraphSearchWithSubpathEvaluationsInput<N,A,V>encodeProblem(org.api4.java.ai.graphsearch.problem.IPathSearchInput<N,A> problem)org.api4.java.ai.graphsearch.problem.pathsearch.pathevaluation.IPathEvaluator<N,A,V>getCoveringNodeEvaluator()intgetNumSamples()org.api4.java.ai.graphsearch.problem.pathsearch.pathevaluation.IPathEvaluator<N,A,V>getPreferredNodeEvaluator()java.util.function.Predicate<N>getPrioritizedNodePredicatesForRandomCompletion()voidsetCoveringNodeEvaluator(org.api4.java.ai.graphsearch.problem.pathsearch.pathevaluation.IPathEvaluator<N,A,V> coveringNodeEvaluator)-
Methods inherited from class ai.libs.jaicore.search.problemtransformers.GraphSearchProblemInputToGraphSearchWithSubpathEvaluationInputTransformer
decodeSolution, getNodeEvaluator, setNodeEvaluator
-
-
-
-
Constructor Detail
-
GraphSearchProblemInputToGraphSearchWithSubpathEvaluationInputTransformerViaRDFS
public GraphSearchProblemInputToGraphSearchWithSubpathEvaluationInputTransformerViaRDFS(org.api4.java.ai.graphsearch.problem.pathsearch.pathevaluation.IPathEvaluator<N,A,V> preferredNodeEvaluator, java.util.function.Predicate<N> prioritizedNodesInRandomCompletion, java.util.Random random, int numSamples, int timeoutForSingleCompletionEvaluationInMS, int timeoutForNodeEvaluationInMS)
- Parameters:
preferredNodeEvaluator- Node evaluator that should be used prior to adopting random completionsprioritizedNodesInRandomCompletion- Predicate that evaluates to true for nodes that should be perferred when drawing random completionsrandom- Random sourcenumSamples- Number of random completionstimeoutForSingleCompletionEvaluationInMS-timeoutForNodeEvaluationInMS-
-
-
Method Detail
-
getPreferredNodeEvaluator
public org.api4.java.ai.graphsearch.problem.pathsearch.pathevaluation.IPathEvaluator<N,A,V> getPreferredNodeEvaluator()
-
getPrioritizedNodePredicatesForRandomCompletion
public java.util.function.Predicate<N> getPrioritizedNodePredicatesForRandomCompletion()
-
getNumSamples
public int getNumSamples()
-
encodeProblem
public GraphSearchWithSubpathEvaluationsInput<N,A,V> encodeProblem(org.api4.java.ai.graphsearch.problem.IPathSearchInput<N,A> problem)
- Specified by:
encodeProblemin interfaceai.libs.jaicore.basic.algorithm.reduction.AlgorithmicProblemReduction<org.api4.java.ai.graphsearch.problem.IPathSearchInput<N,A>,EvaluatedSearchGraphPath<N,A,V extends java.lang.Comparable<V>>,GraphSearchWithSubpathEvaluationsInput<N,A,V extends java.lang.Comparable<V>>,EvaluatedSearchGraphPath<N,A,V extends java.lang.Comparable<V>>>- Overrides:
encodeProblemin classGraphSearchProblemInputToGraphSearchWithSubpathEvaluationInputTransformer<N,A,V extends java.lang.Comparable<V>>
-
getCoveringNodeEvaluator
public org.api4.java.ai.graphsearch.problem.pathsearch.pathevaluation.IPathEvaluator<N,A,V> getCoveringNodeEvaluator()
-
-