Differences between revisions 1 and 4 (spanning 3 versions)
Revision 1 as of 2010-08-02 10:03:15
Size: 1098
Editor: GabiRoeger
Comment:
Revision 4 as of 2011-04-08 10:17:56
Size: 927
Comment: updated syntax
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
#pragma section-numbers 2
Line 9: Line 10:
 * [[#heuristic|heuristics]]
 * [[#g|g-evaluator]]
 * [[#pref|preference evaluator]]
 * [[#sum|sum evaluator]]
 * [[#weight|weight evaluator]]

<<TableOfContents>>
Line 16: Line 14:
=== Heuristic === == Heuristics ==
Line 18: Line 16:
Every [[HeuristicOverview|heuristic]] is a ScalarEvaluator. Every HeuristicSpecification defines a ScalarEvaluator.
Line 21: Line 19:
=== g-value evaluator === == g-value evaluator ==
Line 30: Line 28:
=== Preference evaluator === == Preference evaluator ==
Line 39: Line 37:
=== Sum evaluator === == Sum evaluator ==
Line 42: Line 40:
sum(evaluator1, evaluator2, ...) sum(evals)
Line 46: Line 44:
  * `evaluator1, evaluator2, ...` (comma-separated list of [[ScalarEvaluator]]s): at least one scalar evaluator   * `evals` (list of [[ScalarEvaluator]]s): at least one scalar evaluator
Line 50: Line 48:
=== Weighted evaluator === == Weighted evaluator ==

Back to the HomePage.

Scalar evaluators

XXX TODO: description of the role of scalar evaluators

1. Heuristics

Every HeuristicSpecification defines a ScalarEvaluator.

2. g-value evaluator

g()

Returns the current g-value of the search.

3. Preference evaluator

pref()

Returns 0 if preferred is true and 1 otherwise.

4. Sum evaluator

sum(evals)

Calculates the sum of the sub-evaluators.

5. 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