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 < [email protected]>: > 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 > [email protected] > To unsubscribe from this list, visit > https://www.eclipse.org/mailman/listinfo/sumo-user >
_______________________________________________ sumo-user mailing list [email protected] To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user
