提交 fca2dec9 authored 作者: Frederic Bastien's avatar Frederic Bastien

make the EquilibriumOptimizer a little faster by not triing to optimize node…

make the EquilibriumOptimizer a little faster by not triing to optimize node that have been removed.
上级 97ba90ce
......@@ -963,9 +963,9 @@ class EquilibriumOptimizer(NavigatorOptimizer):
lopt_change = self.process_node(env, node, lopt)
if lopt_change:
process_count[lopt] += 1
else:
process_count[lopt] += 0
changed |= lopt_change
changed = True
if node not in env.nodes:
break# go to next node
finally:
self.detach_updater(env, u)
self.detach_updater(env, u) #TODO: erase this line, it's redundant at best
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论