Package fr.uga.pddl4j.heuristics.state
Class SumMutex
java.lang.Object
fr.uga.pddl4j.heuristics.AbstractHeuristic
fr.uga.pddl4j.heuristics.state.AbstractStateHeuristic
fr.uga.pddl4j.heuristics.state.GraphHeuristic
fr.uga.pddl4j.heuristics.state.SumMutex
- All Implemented Interfaces:
Heuristic
,PlanningGraphHeuristic
,StateHeuristic
,Serializable
This class implements the SUM_ID mutex heuristic is an adaptation of the sum heuristic where mutual
exclusion are computed. For more details on the sum heuristic see Blai Bonet and Hector Geffner,
Planning as Heuristic Search, Artificial Intelligence 129, 2001, Elsevier.
Warning: The sum heuristic is not admissible.
- See Also:
GraphHeuristic
,Sum
, Serialized Form
-
Nested Class Summary
Nested classes/interfaces inherited from interface fr.uga.pddl4j.heuristics.state.StateHeuristic
StateHeuristic.Name
-
Constructor Summary
-
Method Summary
Methods inherited from class fr.uga.pddl4j.heuristics.state.GraphHeuristic
expandPlanningGraph, getSumValue, isGoalReachable, setGoal
Methods inherited from class fr.uga.pddl4j.heuristics.state.AbstractStateHeuristic
getActions, getGoal, getRevelantFacts, isAdmissible, setAdmissible
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface fr.uga.pddl4j.heuristics.state.StateHeuristic
isAdmissible
-
Constructor Details
-
SumMutex
Creates a newSUM_MUTEX
heuristic for a specified planning problem.- Parameters:
problem
- the planning problem.- Throws:
NullPointerException
- ifproblem == null
.
-
-
Method Details
-
estimate
Return the distance to the goal state from the specified state. If the return value isInteger.MAX_VALUE
, it means that the goal is unreachable from the specified state. More precisely, this method returns the level of the planning graph where all the propositions of the goal are reached without any mutex orInteger.MAX_VALUE
otherwise.- Parameters:
state
- the state from which the distance to the goal must be estimated.goal
- the goal expression.- Returns:
- the distance to the goal state from the specified state or
Integer.MAX_VALUE
if the goal is unreachable from the specified state.
-
estimate
Return the estimated distance to the goal to reach the specified state. If the return value isDOUBLE.MAX_VALUE
, it means that the goal is unreachable from the specified state.- Parameters:
node
- the state from which the distance to the goal must be estimated.goal
- the goal expression.- Returns:
- the distance to the goal state from the specified state.
-