summaryrefslogtreecommitdiff
path: root/SANet/SANet.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'SANet/SANet.cpp')
-rw-r--r--SANet/SANet.cpp10
1 files changed, 0 insertions, 10 deletions
diff --git a/SANet/SANet.cpp b/SANet/SANet.cpp
index 981ff8e4d49..174183fa444 100644
--- a/SANet/SANet.cpp
+++ b/SANet/SANet.cpp
@@ -407,16 +407,6 @@ void SANet::Network::update (int max_steps)
}
}
- //Until the initial task is not a task, we need to ensure that it always has a higher
- //utility than anything else so it is considered first as a way to satisfy a task.
- double max_util = 0;
- for(TaskNodeMap::iterator it = task_nodes_.begin(); it != task_nodes_.end(); it++){
- if(it->second->get_pos_util().utility > max_util){
- max_util = it->second->get_pos_util().utility;
- }
- }
- task_nodes_.find(SA_POP::INIT_TASK_ID)->second->set_pos_util(max_util*2);
-
};
// Update a condition's current value (probability of being true).