public final class Combo extends RelaxedGraphHeuristic
combo(S) := hsum(S) + hlvel(S)where
AdjustedSum
,
Sum
,
SetLevel
,
Serialized FormHeuristic.Type
Constructor and Description |
---|
Combo(CodedProblem problem)
Creates a new
COMBO heuristic for a specified planning problem. |
Modifier and Type | Method and Description |
---|---|
int |
estimate(BitState state,
BitExp goal)
Return the estimated distance to the goal to reach the specified state.
|
expandRelaxedPlanningGraph, getMaxValue, getRelaxedPlanValue, getSumValue, isGoalReachable, setGoal
getGoal, getOperators, getRevelantFacts, isAdmissible, setAdmissible
public Combo(CodedProblem problem)
COMBO
heuristic for a specified planning problem.problem
- the planning problem.java.lang.NullPointerException
- if problem == null
.public int estimate(BitState state, BitExp goal)
Integer.MAX_VALUE
, it means that the goal is unreachable from the specified
state.state
- the state from which the distance to the goal must be estimated.goal
- the goal expression.