- Cleaned up heuristic code. Note that there is a "hidden" heuristic:

implicitly, older goals are resolved first, if some goals have equal
  weights. This is encoded in the "w <=" comparison; if this is set to
  "w <", the heuristic becomes much less effective.
This commit is contained in:
ccremers
2006-02-23 15:03:43 +00:00
parent 10d44ad611
commit b16023bf0e
5 changed files with 74 additions and 106 deletions

View File

@@ -544,7 +544,7 @@ main (int argc, char **argv)
if (switch_prune_trace_length->ival[0] >= 0)
switches.maxtracelength = switch_prune_trace_length->ival[0];
if (switch_goal_select_method->ival[0] >= 0)
switches.arachneSelector = switch_goal_select_method->ival[0];
switches.heuristic = switch_goal_select_method->ival[0];
#ifdef DEBUG
/* in debugging mode, some extra switches */
if (switch_debug_indent->count > 0)