Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] SUMO Queries

Duration looks like the time it took to finish the simulation. If you use the simulated time divided by the duration (10031/115.47), you will get the real time factor (86.871).

Thanks,
Qichao

On Wed, Feb 9, 2022 at 1:41 PM Sumbal Malik <maliksumbal01@xxxxxxxxx> wrote:
Dear Jakob

I used this command --duration-log.statistics to generate the average values of the simulation such as total delay, travel time. May I please know what do performance statistics represent in the attached figure? Especially what does duration mean in performance statistics?

Thank you

On Wed, 9 Feb 2022 at 11:05, Jakob Erdmann <namdre.sumo@xxxxxxxxx> wrote:
Q1

Q2
(the answer involving --max-num-vehicles is probably best suited for your scenario)

Q3
Precise control over lanechange timing requires use of TraCI
i.e.:
leaderAndgap = traci.vehicle.getLeader(ego)
if leaderAndGap and leaderAndGap[1] < 5:
   traci.vehicle.changeLane(ego, 1, 10)


Am Di., 8. Feb. 2022 um 16:17 Uhr schrieb Sumbal Malik <maliksumbal01@xxxxxxxxx>:
Dear Sumo Community 
I am new to the SUMO simulator and have a few basic questions to ask. I would be thankful if you could answer the below questions:
Q1. How to calculate the travel time of a particular vehicle from source to destination. Say
I have a network of 8 edges with three vehicles and the route is defined as <route id="route_0" edges="e1 e2 e3 e4 e5 e6 e7 e8" />. I want to calculate how long will the ego vehicle take to reach from e1 to e8. Also, how can we calculate the average travel time of all vehicles?
Q2. I have a network of 2 edges and 3 vehicles on a straight lane. How can I iterate the same vehicles on the lane again and again until the simulation ends?
Q3. How can we change the lane of the ego vehicle based on the condition such as if the distance between the leading and following vehicle is less than 5 then change the lane? How the condition will be written.
Thank you
_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user
_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user
_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user


--
Qichao Wang, Ph.D.
Computational Scientist
AI, Learning and Intelligent Systems Group
Computational Sciences Center
National Renewable Energy Laboratory



Back to the top