Beispiel #1
0
  @Override
  public void initialise() {
    super.initialise();

    policy = new LevelPheromonePolicy();
    policy.initialise(graph);

    reset = true;

    // (initial) heuristic of the whole dataset

    Instance[] instances = Instance.newArray(dataset.size());
    Instance.markAll(instances, RULE_COVERED);

    INITIAL_HEURISTIC = CONFIG.get(DEFAULT_HEURISTIC).compute(graph, dataset, instances);
  }
Beispiel #2
0
 @Override
 public void update(Archive<RuleList> archive) {
   super.update(archive);
   policy.update(graph, archive.highest());
 }