Questions tagged [flow-project]

Computational framework for reinforcement learning in traffic control https://github.com/flow-project/flow

98 questions
1
vote
1 answer

On run 'example/sumo/grid.py'.FatalFlowError:'Not enough vehicles have spawned! Bad start?'

I want to simulate a jam simulation on the grid example, So I try to increase the number of row and column or increase the number of num_cars_left/nums_cars_right/nums_cars_top/nums_cars_bot. For example: n_rows = 5 n_columns = 5 num_cars_left =…
1
vote
2 answers

On examples/sumo/grid.py simulation, there are several detectors, how to get the data

On the example program(examples/sumo/grid.py), when on simulation, we can observe there are four detectors around an intersection, so how do we get the data from these detectors? On the code file, there are any codes about these detectors.
1
vote
1 answer

Setting up Flow with Aimsun (examples/sugiyama.py)

I can't seem to open examples/aimsun/sugiyama.py I have installed Aimsun Next 8.4.0 and I have already pasted its path in AIMSUN_NEXT_PATH variable in flow/config.py Here's the error that I get; OSError: [Errno 8] Exec format error:…
1
vote
1 answer

Can we choose max and min speeds for each traffic lane in Flow project?

It seems that we can only set the whole limmitted speed for all the lanes in created road, and we can't set the limitted speed for single lanes in the situation of lane changing.
1
vote
4 answers

Mismatching phase size in tls when setting up more than one lane in Simple Grid Scenario

I am modifying SimpleGridScenario class in ../flow/scenarios/grid.py and .../examples/rllib/green_wave.py so that I can turn my simple grid into a double lane per corridor scenario. I added them and I also set up new connections so that vehicles can…
1
vote
1 answer

How to write Get_state() return based in multi-agent based on agent-id?

I'm tying to make a multi agent implementation of the 3x3 grid (grid0) for traffic light control In the get_state function, I want to differ in the information that I sent to the RL agent in this function. So agent 1 get only the information of…
TNelen
  • 55
  • 1
  • 7
1
vote
1 answer

Failed to install sumo binaries on macOS

I have some trouble installing the sumo binaries. See the logs: Installing sumo binaries ~/sumo_binaries/bin ~/flow --2019-06-27 15:58:18-- https://akreidieh.s3.amazonaws.com/sumo/flow-0.3.1/binaries-mac.tar.xz 正在解析主机 akreidieh.s3.amazonaws.com…
qun wang
  • 11
  • 1
1
vote
1 answer

Simulation parameters and reward calculation in benchmark scenario "Merge"

I am currently trying to reproduce some results on my installation of flow from your previous papers. I ran over the following questions, where I am not clear about the exact parameters used in the experiments, and the results given in the…
bmartin
  • 15
  • 3
1
vote
1 answer

How can I add additional facilities in custom scenarios?

I'm wondering how can I add additional facilities in custom scenarios, like parking area or bus stops? I have finished the corresponding .add.xml file, but don't know how to import it into the custom scenario. Can I use any functions to set up these…
Kathy
  • 31
  • 4
1
vote
1 answer

How to run Flow training on 2 GPU(s)?

Repost from Wouter J. How can I run the flow training on GPU(s)? I'm currently trying to get the ppo_runner benchmark to work with my 2 GPU's. However, I can't find any way to make use of these resources. What would I need to change in the code to…
Ashkan
  • 238
  • 1
  • 10
1
vote
1 answer

Error 'Could not connect to TraCI server at localhost: 40335 [Errno 111] Connection refused'

Repost from J. Guo: Hi everyone, I followed the document to install Flow and when type in 'python examples/sumo/sugiyama.py' to check my installation, it returned: Could not connect to TraCI server at localhost: 40335 [Errno 111] Connection…
1
vote
1 answer

Trouble running sumo flow demo example

Repost from user Jin G. After going through the Flow installation tutorial I tried to run the sumo demo example using the following terminal command: python examples/sumo/sugiyama.py I got the following error message: Could not connect to TraCI…
Rayyan
  • 210
  • 2
  • 14
0
votes
0 answers

High Runtime Experiments for Executing Sample Codes in the 'examples' Folder

I am new to Flow and Ray[rllib], and I would like to request your assistance in sharing your estimated runtime experiences for the example codes provided in the 'examples' folder of Flow, considering your system properties. For instance, when I run…
FahimSh87
  • 1
  • 1
0
votes
1 answer

Optimization of trasportation problem in Pyomo

I have an issue as the problem is not optimaze and I am trying to use a binary variable x to identify if the edge is used or not as the number of edges used should be minimized. The issue is that I cannot assign the correct value to x=1 when the Q…
Matteo
  • 1
0
votes
0 answers

How to pass `ADDITIONAL_NET_PARAMS` to main.py when generating network from template files?

I use .net.xml and .rou.xml as templates in network.py to generate networks. Related code is posted below: temp_dir = ".\UrbanRoadway\ur_scenario" net_params = NetParams( template={ # network geometry features "net":…