Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] save simulation state
  • From: <Maria.Armellini@xxxxxx>
  • Date: Mon, 7 Sep 2020 19:25:55 +0000
  • Accept-language: de-DE, en-US
  • Delivered-to: sumo-user@xxxxxxxxxxx
  • Ironport-phdr: 9a23:CypsKhcyd+yaZDqUc/DfLOGblGMj4u6mDksu8pMizoh2WeGdxcSyYx7h7PlgxGXEQZ/co6odzbaP7ea5BDRLuMzc+Fk5M7V0HycfjssXmwFySOWkMmbcaMDQUiohAc5ZX0Vk9XzoeWJcGcL5ekGA6ibqtW1aFRrwLxd6KfroEYDOkcu3y/qy+5rOaAlUmTaxe7x/IAi3oAnLq8UbgZduJqksxhfXonZDZvhby35vKV+PhRj3+92+/IRk8yReuvIh89BPXKDndKkmTrJWESorPXkt6MLkqRfMQw2P5mABUmoNiRpHHxLF7BDhUZjvtCbxq/dw1zObPc3ySrA0RCii4qJ2QxLmlCsLKzg0+3zRh8dtjqxUvQihqgR/zYDKfY+VKPRwcKDTfdwYRGpOQsleWjdbDY+gbYsCFfYNMfpaooT7ulAArQG+BQ6pBO73zTJGgWX53bc70+s7Cw3LwBYgH9cQv3TQqNX1NaESUeGuwabVyTXDdela1irj54XRdB0qvP6DU65qf8XL1UkvCx3Kjk+WqYH9MT2b2eYAvnSF4+dvSe+ij2AqpQFtrzahxcohionHipwVxF3F9Ch0xIk7KNK4RkN4fNOpEZpdujyeOoZ3Q84uXWdlszs0xL0BvJ60ZikKyJI/yhHCb/yHaZKE7Q/9W+qJJDd5hG5qd6ikhxms60SgzPPzVtWy3V1XrSRFisHBum0R2xDJ98SKSfRw8l281TuB1A3f8P9ILV4smabGKZMt3KQ8moQOvUjZAyP7mkT7gLWLekgi5+Om8f7oYq/8qZ+ZL4J0jwb+PbkwlcGnGuQ4NxQOX3Cc+eShyL3v5U35T6tOjv0xiqTXvpbUK8oUqKC5AwFb1YUt5RGlATu4ztgWkngIIUxfdBKGiYjpJ0vOL+riAfiih1Ssii1nyO3YMbH5A5XNKGbMkKv5cLpg90JQ0hc/wNNQ6p5OF70MLvH+VlXvuNDGFhM5Nha7w+fjCNVzzIMeXmePD7eePqzIq1+I5/ggL/OQaY8PvTbyNfwl5/rvjX8/mF8QZrSm3Z8NaHyiA/tpPV2VYWDwjdcZDWcKog0+QfTxiF2fVD5TYG++X78n5j4lEoKrFpnMSZypgLyAxCe7BYNZanpBClCWHne7P7mDDqMXdSeVZ9J6nyYsWLOlSpc62FeprgCsmJR9Ke+BrggRr5PqkvFv4uDXkRA09BR4C97b32zbHDI8pX8BWzJjhPM3mkd60FrWiaU=
  • Ironport-sdr: UfsiZCYhL8oCFgKbBpct3a0DZ4WEihYHV9Qt2Y1K9W0MqTgA2Xwu3y96oVztCxpwTGIVnl9QQp plvfmoLNZz0g==
  • 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: AQHWhUASoWQv9NgGC06ICN1bY1c42qldeZkg
  • Thread-topic: [sumo-user] save simulation state

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


Back to the top