Class EnhancedTTSPToBinaryTelescopeGraphSearchReducer
- java.lang.Object
-
- ai.libs.jaicore.search.exampleproblems.enhancedttsp.EnhancedTTSPToBinaryTelescopeGraphSearchReducer
-
- All Implemented Interfaces:
ai.libs.jaicore.basic.algorithm.reduction.AlgorithmicProblemReduction<ai.libs.jaicore.problems.enhancedttsp.EnhancedTTSP,it.unimi.dsi.fastutil.shorts.ShortList,GraphSearchWithSubpathEvaluationsInput<ai.libs.jaicore.problems.enhancedttsp.EnhancedTTSPBinaryTelescopeNode,java.lang.String,java.lang.Double>,org.api4.java.datastructure.graph.ILabeledPath<ai.libs.jaicore.problems.enhancedttsp.EnhancedTTSPBinaryTelescopeNode,java.lang.String>>
public class EnhancedTTSPToBinaryTelescopeGraphSearchReducer extends java.lang.Object implements ai.libs.jaicore.basic.algorithm.reduction.AlgorithmicProblemReduction<ai.libs.jaicore.problems.enhancedttsp.EnhancedTTSP,it.unimi.dsi.fastutil.shorts.ShortList,GraphSearchWithSubpathEvaluationsInput<ai.libs.jaicore.problems.enhancedttsp.EnhancedTTSPBinaryTelescopeNode,java.lang.String,java.lang.Double>,org.api4.java.datastructure.graph.ILabeledPath<ai.libs.jaicore.problems.enhancedttsp.EnhancedTTSPBinaryTelescopeNode,java.lang.String>>
-
-
Constructor Summary
Constructors Constructor Description EnhancedTTSPToBinaryTelescopeGraphSearchReducer()EnhancedTTSPToBinaryTelescopeGraphSearchReducer(java.util.function.ToDoubleFunction<java.lang.Number> linkFunction)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description it.unimi.dsi.fastutil.shorts.ShortListdecodeSolution(org.api4.java.datastructure.graph.ILabeledPath<ai.libs.jaicore.problems.enhancedttsp.EnhancedTTSPBinaryTelescopeNode,java.lang.String> solution)GraphSearchWithSubpathEvaluationsInput<ai.libs.jaicore.problems.enhancedttsp.EnhancedTTSPBinaryTelescopeNode,java.lang.String,java.lang.Double>encodeProblem(ai.libs.jaicore.problems.enhancedttsp.EnhancedTTSP problem)
-
-
-
Method Detail
-
encodeProblem
public GraphSearchWithSubpathEvaluationsInput<ai.libs.jaicore.problems.enhancedttsp.EnhancedTTSPBinaryTelescopeNode,java.lang.String,java.lang.Double> encodeProblem(ai.libs.jaicore.problems.enhancedttsp.EnhancedTTSP problem)
- Specified by:
encodeProblemin interfaceai.libs.jaicore.basic.algorithm.reduction.AlgorithmicProblemReduction<ai.libs.jaicore.problems.enhancedttsp.EnhancedTTSP,it.unimi.dsi.fastutil.shorts.ShortList,GraphSearchWithSubpathEvaluationsInput<ai.libs.jaicore.problems.enhancedttsp.EnhancedTTSPBinaryTelescopeNode,java.lang.String,java.lang.Double>,org.api4.java.datastructure.graph.ILabeledPath<ai.libs.jaicore.problems.enhancedttsp.EnhancedTTSPBinaryTelescopeNode,java.lang.String>>
-
decodeSolution
public it.unimi.dsi.fastutil.shorts.ShortList decodeSolution(org.api4.java.datastructure.graph.ILabeledPath<ai.libs.jaicore.problems.enhancedttsp.EnhancedTTSPBinaryTelescopeNode,java.lang.String> solution)
- Specified by:
decodeSolutionin interfaceai.libs.jaicore.basic.algorithm.reduction.AlgorithmicProblemReduction<ai.libs.jaicore.problems.enhancedttsp.EnhancedTTSP,it.unimi.dsi.fastutil.shorts.ShortList,GraphSearchWithSubpathEvaluationsInput<ai.libs.jaicore.problems.enhancedttsp.EnhancedTTSPBinaryTelescopeNode,java.lang.String,java.lang.Double>,org.api4.java.datastructure.graph.ILabeledPath<ai.libs.jaicore.problems.enhancedttsp.EnhancedTTSPBinaryTelescopeNode,java.lang.String>>
-
-