Skip to content

I'm working on a college project to train a basic reinforcement model, and decided to use UXsim for it #154

Answered by toruseo
Yateen00 asked this question in Q&A
Discussion options

You must be logged in to vote

Thanks for your interest!

Lets consider the following situation. A node is connected to 4 links, say link A, B, C, and D. The value of signal_group parameter of links A and C is 0, and that of B and D is 1.
Then, links A and C will have green light when the node's signal_phase is 0, and B and D will be green when signal_phase is 1. The node's signal parameter will be something like [60, 50], meaning that phase 0 is 60 seconds and phase 1 is 50 seconds.

the bit string to set signal_phase and signal_t

This is to convert one integer variable (output of DQN) to four binary variables (input for four signal nodes).

I recommend you to see and modify the following code to see what will happen i…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by toruseo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants