Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] save simulation state

When saving and loading simulation state, the rerouting period for each vehicle is restored as well so you cannot use this to reset the values.
However, you can set a new value for --routing-algorithm when loading state.

Am Di., 8. Sept. 2020 um 05:09 Uhr schrieb Jane Cheung <cheung180515@xxxxxxxxx>:

Maria,

Thanks for your reply!
If I have 3000000 vehicles in my simulation scenario, the suggested Traci command is going to set a parameter for each vehicle, like

  • use Traci to find a list of vehicles is running and are going to insert in the simulation,
  • set a new rerouting period for these vehicles.
  •    
I am wondering, is it a time-consuming one? 

Are there some other methods I could do it quickly and easily?


Best regards,

Jane


On Tue, Sep 8, 2020 at 3:26 AM <Maria.Armellini@xxxxxx> wrote:

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: sumo-user-bounces@xxxxxxxxxxx [mailto:sumo-user-bounces@xxxxxxxxxxx] 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
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

Back to the top