Hi Jane,
I think you could do it using Traci. You can start the simulation with high
values for “device.rerouting.period” and “device.rerouting.pre-period” to avoid
rerouting vehicles before time 1800 s. At simulation time 1800s you can change
the “device.rerouting.period” value of specific vehicles with the command:
traci.vehicle.setParameter("vehicle ID", "device.rerouting.period", "period")
See https://sumo.dlr.de/docs/Demand/Automatic_Routing.html#traci and
https://sumo.dlr.de/docs/TraCI.html for more information.
Sumo can generate different types of measures, in the following link you can
find information about them https://sumo.dlr.de/docs/Simulation/Output.html.
Regards,
Giuliana
From: [email protected] [mailto:[email protected]] On
Behalf Of Jane Cheung
Sent: Montag, 7. September 2020 19:55
To: Sumo project User discussions
Subject: [sumo-user] save simulation state
Dear all,
If I have a simulation with 3600s,
the configuration file is below :
-----------------------------------------------------------------
<input>
<net-file value="mycase.net.xml"/>
<route-files value="mycase.rou.xml"/>
</input>
<output>
<summary-output value="output\mycase.summary.xml"/>
<tripinfo-output value="output\mycase.tripinfo.xml"/>
<tripinfo-output.write-unfinished value="true"/>
</output>
<time>
<begin value="0"/>
<end value="36000"/>
</time>
<routing>
<device.rerouting.probability value="1"/>
<device.rerouting.period value="300"/>
<device.rerouting.pre-period value="300"/>
</routing>
<processing>
<ignore-junction-blocker value="20"/>
<time-to-teleport value="75600"/>
<max-depart-delay value="3600"/>
<routing-algorithm value="dijkstra"/>
</processing>
-----------------------------------------------------------------
I want to evaluate different rerouting algorithms in SUMOs from 1800s to the
3600s. In order to do that, I hope the traffic condition from 0-1800s in
different tests are the same, and the rerouting-device in each vehicle can only
work from the 1800s to 3600s
Could I save the simulation state at 1800s and try different simulations from
1800-3600 with different route algorithms?
Could I save one simulation state of SUMO? Or Could I use some other ways to
realize my purpose?
Appreciated in advance, and looking forward to getting your suggestions.
Best regards,
Jane
_______________________________________________
sumo-user mailing list
[email protected]
To unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/sumo-user