[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [sumo-user] Traci multiple consecutive simulation run
|
- From: Pearla Hajjar <pearlahajjar@xxxxxxxxxxx>
- Date: Tue, 28 Jun 2022 13:32:43 +0000
- Accept-language: en-US
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=p0r0MVaqFzlOH4VaKNN91jiqBdFm/f1f+b+JgRJSW1k=; b=RNLJw/gHWIbmKvR7h3SjsRADUN8JSmyCkVhzTk7/1Ws+U16smgdeg4pRr0cMBi9MR/U0o5aQV2d4r4Ofxo/X1m4Xl/Ik/95ieNmyR4okscgSCjPlLtuKr6PmZhLphsDmXLEZtnPN/Z1q8c1WVdjorHiJUZR24dtmyK+ajUsdWmhqOTXhySPdbOYwl80t5FBMQ5fk9M+kHLoOmOv+qT/qnpRcduVzHUWesGk8Ss5DLu8CxbOpQ3K6qlBBLxSUrNCDDR2XTxBa/mrwJZ4zydD94jxKZ8WMsYu40JE92rTzDxSZ2mNI1aPiKEr182rKcMFUdbT7Hexn/5W7VM2WsjQAPw==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=S5FjDMF+0AxUiUHobPNCPj5P3KMA3C7jIdPQig43+PEhOtwv+oprtk/6aXiD+fDob8IlnM2uBZh9XsiBScOEv5+H+IdpTaFZGq9rT7VDOYNoVreeHfgLOekuXuWAh8J3Ecb/5T1/tDew+HPH9UN4yfNCuU0fg44+e6jjuNWesIsyNHbVh4xFKbg2rV2j7SqsoiuUVrmlkpLMj1QXsuxf6DQEjllF71efn0JU0Z5BIiFlegVSnf1HancMUqq1qu7MDhxTA1LzPULY0e6uvw4o4XhQHKAJRuFPlyVpA5Z4BtgK+SS3QWNJpmF3AMD05/Em+fy8q75cpJuuVfxtAZi7Qg==
- Delivered-to: sumo-user@xxxxxxxxxxx
- List-archive: <https://www.eclipse.org/mailman/private/sumo-user/>
- List-help: <mailto:sumo-user-request@eclipse.org?subject=help>
- List-subscribe: <https://www.eclipse.org/mailman/listinfo/sumo-user>, <mailto:sumo-user-request@eclipse.org?subject=subscribe>
- List-unsubscribe: <https://www.eclipse.org/mailman/options/sumo-user>, <mailto:sumo-user-request@eclipse.org?subject=unsubscribe>
- Thread-index: AQHYis8iesoe9w1lRka/rLbyDHH6Wq1ki6IAgABFi9I=
- Thread-topic: [sumo-user] Traci multiple consecutive simulation run
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 <sumo-user-bounces@xxxxxxxxxxx> on behalf of Jakob Erdmann <namdre.sumo@xxxxxxxxx>
Sent: Tuesday, June 28, 2022 11:22:46 AM
To: Sumo project User discussions <sumo-user@xxxxxxxxxxx>
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()
....
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
sumo-user@xxxxxxxxxxx
To unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/sumo-user