diff options
author | dmack <dmack@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2009-06-26 21:58:11 +0000 |
---|---|---|
committer | dmack <dmack@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2009-06-26 21:58:11 +0000 |
commit | 87527a4ea3e23d77ea48241843803c5994209ff6 (patch) | |
tree | 4f985efb6973d4f0aac9dc99fb5b48afd0fa518e /SA_PlanHeuristics.cpp | |
parent | d015054c567c6631f122a034f481e1726432f20c (diff) | |
download | ATCD-87527a4ea3e23d77ea48241843803c5994209ff6.tar.gz |
Fri Jun 26 21:53:02 UTC 2009 Daniel L.C. Mack <daniel.l.mack@vanderbilt.edu>
Diffstat (limited to 'SA_PlanHeuristics.cpp')
-rw-r--r-- | SA_PlanHeuristics.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/SA_PlanHeuristics.cpp b/SA_PlanHeuristics.cpp index 115690ad6bd..21e1c7be467 100644 --- a/SA_PlanHeuristics.cpp +++ b/SA_PlanHeuristics.cpp @@ -46,7 +46,7 @@ Condition SA_CondStrategy::choose_cond (const OpenCondMap &open_conds) } // If no data conditions, just return first condition. - return open_conds.begin ()->first; + return open_conds.front().first; }; @@ -69,6 +69,10 @@ TaskList SA_TaskStrategy::choose_task (Condition open_cond) { TaskSet tasks = this->planner_->get_satisfying_tasks (open_cond); + if(this->planner_->init_added){ + tasks.erase(20); + } + // Add tasks to map with EU (to sort). std::map<EUCalc, TaskID> task_map; task_map.clear (); |