How to maintain constant number of vehicles through out the simulation in SUMO simulation?
<p>I am a new to SUMO. Can someone help me on how to maintain the constant number of vehicles i.e. constant density, over the complete simulation period like for 1 hr. In this <a href="http://sumo.dlr.de/wiki/FAQ#How_do_I_maintain_a_constant_number_of_vehicles_in_the_net.3F" rel="nofollow">post</a>, they said that using options --begin, --end. I didn't understand how to make use of that option.</p>

<p>Also, It is said that "You can use the option --max-num-vehicles to set the desired number"</p>

<p>Where to execute this option ? Is it with netconvert? Can someone guide me with an example? I mean the full command. Thank you so much.</p>

<p>P.S: I am using SUMO 0.26.0 simulator, windows 10 64bit.</p>

<p>Edit:</p>

<p>after Micheal suggestion I am able to limit the total number of vehicles in the simulation but not able to maintain the same number. Because some of the vehicles are leaving the simulation. Can any one guide me how to maintain the same number of vehicles? </p>

<p>In <a href="http://www.sumo.dlr.de/userdoc/FAQ.html#How_do_I_maintain_a_constant_number_of_vehicles_in_the_net.3F" rel="nofollow">this post</a> they have mentioned to use Rerouter.But didn't get where should I write retoure attribue.</p>

<p>Should I manually edit my cars.rou.xml file and add some more edges to vechile attribute? someone please guide me. Thank you.</p>