Thank you for your reply. I tried them but i have the following problems.

In my main function I am calling the run function that takes my input 
parameters and starts the simulation.
I have defined a stopping condition that if there is no more passengers to be 
served, the simulation ends.

When i use traci.start in the for loop in the main and call the run function, 
none of the choices are working for relaunching the simulation.

Regards,


Perla HAJJAR

Ph.D Student- Universite de Versailles SQ and Communauté d’Agglomération de 
Saint Quentin en Yvelines

Direction des Mobilités- Navettes autonomes

________________________________
From: sumo-user <[email protected]> on behalf of Jakob Erdmann 
<[email protected]>
Sent: Tuesday, June 28, 2022 11:22:46 AM
To: Sumo project User discussions <[email protected]>
Subject: Re: [sumo-user] Traci multiple consecutive simulation run

Either:
traci.start()
traci.close()
traci.start()
traci.close()
...

or
traci.start()
traci.load()
traci.load()
....

Am Di., 28. Juni 2022 um 11:19 Uhr schrieb Pearla Hajjar 
<[email protected]<mailto:[email protected]>>:
Hello,

I am trying to simulate many consecutive sumo runs with different inputs 
automatically i.e. when the first simulation ends, it will start the other 
simulation from the input of the for loop.

I don't care to run the simulation in gui, I just need the output files of 
every simulation.

I tried using traci.load but I get the following error:
File "C:\Users\hajjar.p\PycharmProjects\SUMO SA\Stopping cond.py", line 178, in 
<module>
    traci.load(["-c", "Sumo_SA_Conf.sumocfg", "--vehroute-output", 
"vehroute.xml", "--tripinfo-output",
  File "C:\Program Files (x86)\Eclipse\Sumo\tools\traci\main.py", line 190, in 
load
    raise FatalTraCIError("Not connected.")
traci.exceptions.FatalTraCIError: Not connected.

Your help is much appreciated.
Thank you in advance.
Regards,


Perla HAJJAR

Ph.D Student- Universite de Versailles SQ and Communauté d’Agglomération de 
Saint Quentin en Yvelines

Direction des Mobilités- Navettes autonomes

_______________________________________________
sumo-user mailing list
[email protected]<mailto:[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

Reply via email to