Engineer1999 / Double-Deep-Q-Learning-for-Resource-Allocation

Reproduce results of the research article "Deep Reinforcement Learning Based Resource Allocation for V2V Communications"
188 stars 55 forks source link

Question about V2V and V2I channel #1

Open zyy341 opened 4 years ago

zyy341 commented 4 years ago

Hi,thanks to your latest modification code from haoye‘s. I have a question about V2V and V2I channel https://github.com/Engineer1999/Double-Deep-Q-Learning-for-Resource-Allocation/blob/a567b1f84e2420e92cb01494217cb958983bb8b8/agent.py#L53 https://github.com/Engineer1999/Double-Deep-Q-Learning-for-Resource-Allocation/blob/a567b1f84e2420e92cb01494217cb958983bb8b8/agent.py#L54 As shown above,when calculating V2V_channel and V2I_channel ,the self.env.V2V_channels_with_fastfading and self.env.V2I_channels_with_fastfading are both minus 80 and then divide by 60. Could you be so kind as to provide me with some help on the reason why channels_with_fastfading minus 80 and then divide by 60? Thank you for your kindness, and your prompt attention to this letter will be highly appreciated.

Engineer1999 commented 4 years ago

hey @zyy341 To the best of my knowledge, the main objective of doing this is to control the attenuation due to fast fading.

1219-wangjindong commented 1 year ago

Hello, I adjusted the number of vehicles, but it reported an error. Is the number of vehicles adjusted in the position of environment initialization?