849
Comment:
|
738
|
Deletions are marked like this. | Additions are marked like this. |
Line 2: | Line 2: |
XXX TODO: description of the role of scalar evaluators and the connection to [[Doc/Heuristic|Heuristic]] |
|
Line 26: | Line 24: |
sum(evals=) | sum(evals) |
Line 33: | Line 31: |
weight(eval=, weight=) | weight(eval, weight) |
g-value evaluator
Returns the g-value (path cost) of the search node.
g()
Preference evaluator
Returns 0 if preferred is true and 1 otherwise.
pref()
Sum evaluator
Calculates the sum of the sub-evaluators.
sum(evals)
evals (list of ScalarEvaluator): at least one scalar evaluator
Weighted evaluator
Multiplies the value of the scalar evaluator with the given weight.
weight(eval, weight)
eval (ScalarEvaluator): scalar evaluator
weight (int): weight