Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] Is the libsumo can be used in parallel simulations from the same TraCI script?

libsumo does not allow for multiple instances in the same process. You might be able to make it work using the python bindings for sumolib with the python multiprocessing module.

Am Do., 19. Nov. 2020 um 09:32 Uhr schrieb bruce Wang <bruce.wang2016@xxxxxxxxxxx>:
Hi, every one,

I know the traci can be used to control multiple simulations at the same
time with a single script. The function traci.start() has an optional label
argument which allows you to call it multiple times with different
simulation instances and labels. The function traci.switch() can then be
used to switch to any of the initialized labels。

But, the label can not be used in the libsumo, so how to use libsumo in
multiple simulation? I need to run more than 200 simulation processes at the
same time. Traci cannot be used in such situations due to port allocation
problems.


In addition, different simulations can use the same net.xml rou.xml And.
Sumocfg files? The same file is used to initiate multiple simulation
processes




--
Sent from: http://sumo-user-mailing-list.90755.n8.nabble.com/
_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user

Back to the top