Differences between revisions 4 and 5
Revision 4 as of 2011-04-08 10:17:56
Size: 927
Comment: updated syntax
Revision 5 as of 2017-04-25 15:44:17
Size: 0
Comment:
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
#pragma section-numbers 2
Back to the HomePage.



= Scalar evaluators =

XXX TODO: description of the role of scalar evaluators


<<TableOfContents>>

<<Anchor(heuristic)>>
== Heuristics ==

Every HeuristicSpecification defines a ScalarEvaluator.

<<Anchor(g)>>
== g-value evaluator ==

{{{
g()
}}}

Returns the current g-value of the search.

<<Anchor(pref)>>
== Preference evaluator ==

{{{
pref()
}}}

Returns 0 if preferred is true and 1 otherwise.

<<Anchor(sum)>>
== Sum evaluator ==

{{{
sum(evals)
}}}

Calculates the sum of the sub-evaluators.
  * `evals` (list of [[ScalarEvaluator]]s): at least one scalar evaluator


<<Anchor(weight)>>
== Weighted evaluator ==

{{{
weight(scalar_evaluator, weight)
}}}

Multiplies the value of the scalar evaluator with the given weight.
  * `scalar_evaluator` (ScalarEvaluator): scalar evaluator
  * `weight` (int): weight