DanieleGammelli/graph-rl-for-network-optimization

Bug Report (dvr_env.py @ mobility)

Opened this issue · 0 comments

I may have discovered a problem in your code.

That is:
(mobility/envs/dvr_env.py line 147) you may need to replace = with +=, or the original paxFlow (inflow) will be overwritten by paxAction.
image

At the same time, you may also need to change the definition of self.rebFlow and self.paxFlow in your code from defaultdict(dict) to defaultdict(lambda: defaultdict(float)).

I would be happy if my suggestion work. Please correct me if I’m mistaken. Thanks :)