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 Main code(position)

Open axuey opened this issue 3 years ago • 2 comments

First of all, thank you for open source this code, but there are some questions for me,it's

def main(_):

  up_lanes = [3.5/2,3.5/2 + 3.5,250+3.5/2, 250+3.5+3.5/2, 500+3.5/2, 500+3.5+3.5/2]
  down_lanes = [250-3.5-3.5/2,250-3.5/2,500-3.5-3.5/2,500-3.5/2,750-3.5-3.5/2,750-3.5/2]
  left_lanes = [3.5/2,3.5/2 + 3.5,433+3.5/2, 433+3.5+3.5/2, 866+3.5/2, 866+3.5+3.5/2]
  right_lanes = [433-3.5-3.5/2,433-3.5/2,866-3.5-3.5/2,866-3.5/2,1299-3.5-3.5/2,1299-3.5/2]

I want to know what these codes mean. After reading the code, I think it should be used to locate the intersection, but I still don't know how it works, so I hope you can answer it. Finally, thank you again.

axuey avatar Apr 27 '21 13:04 axuey

First of all, thank you for open source this code, but there are some questions for me,it's

def main(_):

  up_lanes = [3.5/2,3.5/2 + 3.5,250+3.5/2, 250+3.5+3.5/2, 500+3.5/2, 500+3.5+3.5/2]
  down_lanes = [250-3.5-3.5/2,250-3.5/2,500-3.5-3.5/2,500-3.5/2,750-3.5-3.5/2,750-3.5/2]
  left_lanes = [3.5/2,3.5/2 + 3.5,433+3.5/2, 433+3.5+3.5/2, 866+3.5/2, 866+3.5+3.5/2]
  right_lanes = [433-3.5-3.5/2,433-3.5/2,866-3.5-3.5/2,866-3.5/2,1299-3.5-3.5/2,1299-3.5/2]

I want to know what these codes mean. After reading the code, I think it should be used to locate the intersection, but I still don't know how it works, so I hope you can answer it. Finally, thank you again.

Maybe you can look at 3GPP TR36.885 V2.0.0, there is a road case diagram on page 67 to help you understand.

Jzfing avatar Mar 05 '22 15:03 Jzfing

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

1219-wangjindong avatar Jun 01 '23 01:06 1219-wangjindong