Double-Deep-Q-Learning-for-Resource-Allocation icon indicating copy to clipboard operation
Double-Deep-Q-Learning-for-Resource-Allocation copied to clipboard

Question about the meaning of constant “3”

Open szgtvt opened this issue 4 years ago • 3 comments

Hi, thank you very much for sharing the code. It is very helpful. I have a question about the meaning of constant "3". In many places of the codes, "3" is directly used to define the parameters. such as :

https://github.com/Engineer1999/Double-Deep-Q-Learning-for-Resource-Allocation/blob/a567b1f84e2420e92cb01494217cb958983bb8b8/agent.py#L28

https://github.com/Engineer1999/Double-Deep-Q-Learning-for-Resource-Allocation/blob/a567b1f84e2420e92cb01494217cb958983bb8b8/agent.py#L58

https://github.com/Engineer1999/Double-Deep-Q-Learning-for-Resource-Allocation/blob/a567b1f84e2420e92cb01494217cb958983bb8b8/Environment.py#L507

https://github.com/Engineer1999/Double-Deep-Q-Learning-for-Resource-Allocation/blob/a567b1f84e2420e92cb01494217cb958983bb8b8/Environment.py#L137.

What is the meaning of "3"? Is it equal to the number of neighbours? Thank you very much.

szgtvt avatar Aug 27 '20 04:08 szgtvt

3 is a number that represents the neighbor.

Engineer1999 avatar Aug 27 '20 04:08 Engineer1999

Thank you

szgtvt avatar Aug 27 '20 05:08 szgtvt

3 is a number that represents the neighbor.

since a vehicle has 3 neighbors,and it needs communicate with 3 neighbors at the same time,why the vehicle can select 3 levels transmission power(in the paper,23dbm,10dbm,5dbm),if 3 links select 23dbm,10dbm,5dbm,respectively,the sum transmission power will be up to (23+10+5)=38dbm,even may be up to(23+23+23)=69dbm,so how to understand it?Thank you very much.

zenghaogithub avatar Aug 28 '20 11:08 zenghaogithub