987
Comment:
|
← Revision 5 as of 2017-04-25 15:44:17 ⇥
0
|
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(evaluator1, evaluator2, ...) }}} Calculates the sum of the sub-evaluators. * `evaluator1, evaluator2, ...` (comma-separated 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 |