Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] Realistic Mobility Model

Hello,
1) when comparing two runs using --random-depart-offset 0 and 500 I see a difference in departures that is quite obvious from the tripinfo output (sumo --tripinfo-output FILE):
<tripinfo id="h2c1:1" depart="30655.00" .../>
versus
 <tripinfo id="h2c1:1" depart="30952.00" .../>

2) The number after the ':' denotes repeated uses of the same car
Thus, the trips
h2c1:1
h2c1:2
h2c1:3
h2c1:4
h2c1:5
correspond to the same daily trip repeating over the 5 days
A comparison of the departure times shows that activitygen already applies a random variation:

 <trip id="h1c1:1" type="default" depart="08:10:29" 
 <trip id="h1c1:2" type="default" depart="1:08:46:53"
 <trip id="h1c1:3" type="default" depart="2:08:18:23" 
 <trip id="h1c1:4" type="default" depart="3:08:29:40" 
 <trip id="h1c1:5" type="default" depart="4:08:01:14"

(note that the human readable time (option -H) is only supported by activitygen in the very latest github version)

regards,
Jakob

Am Mi., 13. Feb. 2019 um 14:30 Uhr schrieb Marvin Manalastas <marvin_manalastas27@xxxxxxxxx>:
Hello Jacob,

Using the attached net and stat files, I run these two codes:

activitygen --net-file activitygen.net.xml --stat-file activitygen.stat.xml --output-file activitygen.trips.rou.xml --duration-d 5 --random

sumo --net-file activitygen.net.xml --route-files activitygen.trips.rou.xml --weights.random-factor 20 --random-depart-offset 500 --fcd-output activitygen

I also tried using small  --random-depart-offset (2 and 10)

Thanks!
Marvin Manalastas


On Wednesday, 13 February 2019, 1:16:56 AM CST, Jakob Erdmann <namdre.sumo@xxxxxxxxx> wrote:


How exactly did you set this option?

Am Mi., 13. Feb. 2019 um 02:27 Uhr schrieb Marvin Manalastas <marvin_manalastas27@xxxxxxxxx>:
Hello Jakob,

I tried adding this option but still getting the same result. No variation on the departure time.

Thanks again.

Regards,
Marvin

On Tuesday, 12 February 2019, 10:48:03 AM CST, Jakob Erdmann <namdre.sumo@xxxxxxxxx> wrote:


you can set sumo option --random-depart-offset to modify departure and consequently arrival time.

Am Di., 12. Feb. 2019 um 17:44 Uhr schrieb Marvin Manalastas <marvin_manalastas27@xxxxxxxxx>:
Hello Jakob,

I was able to add some randomness on the route.

However if I would like to add randomness on the car departure and arrival time is it also possible in activitygen?

Currently when run for 7 days, a car will always leave at 8:00am.

Thanks!
Marvin 



On Saturday, 9 February 2019, 6:05:20 PM CST, Marvin Manalastas <marvin_manalastas27@xxxxxxxxx> wrote:


Thanks Jakob!

On Saturday, 9 February 2019, 4:15:26 PM CST, Jakob Erdmann <namdre.sumo@xxxxxxxxx> wrote:


correct

Am Sa., 9. Feb. 2019 um 19:34 Uhr schrieb Marvin Manalastas <marvin_manalastas27@xxxxxxxxx>:
Thanks Jakob.

Please correct me if im wrong.

To activate rerouting i will use --device.rerouting.probability <INT>
To add randomness i will use --weights.random-factor <Float>

Thanks agian.

Br,
Marvin

On Saturday, 9 February 2019, 9:44:17 AM CST, Jakob Erdmann <namdre.sumo@xxxxxxxxx> wrote:


When running the simulation you can activate rerouting. To add randomness you can add a random factor to the edge weights.
and in particular

Am Fr., 8. Feb. 2019 um 18:33 Uhr schrieb Marvin Manalastas <marvin_manalastas27@xxxxxxxxx>:
Thank you so much Jakob.

I have another question if you may.

Its still about activity-gen. For example i like to generate traffic data for 1 week, is there a way to add some randomness on the route a household will use going to his/her work place so that they wont use the same route for the entire 1 week?

Thanks again.

Br,
Marvin

On Thursday, 7 February 2019, 4:41:23 PM CST, Jakob Erdmann <namdre.sumo@xxxxxxxxx> wrote:


for some reason the cars get multiplied sometimes. I'm not sure why but the relevant code appears to be in activitygen/AGActivityGen.cpp:makeActivityTrips
(I'm not the author of activitygen)

Am Do., 7. Feb. 2019 um 22:18 Uhr schrieb Marvin Manalastas <marvin_manalastas27@xxxxxxxxx>:
Thanks a lot! Really appreciate it Jacob.

One more thing, how about the number after a colon (:), what does it mean?

carIn1:1
carIn1:2
carIn1:3

On these case, numbers 1, 2 and 3.

Thanks again.

Br,
Marvin

On Thursday, 7 February 2019, 3:08:23 PM CST, Jakob Erdmann <namdre.sumo@xxxxxxxxx> wrote:


carIn is commuter traffic
randUni is random traffic
blXbY is bus line X bus number Y
hXcY is a car number Y from household X



Am Do., 7. Feb. 2019 um 21:41 Uhr schrieb Marvin Manalastas <marvin_manalastas27@xxxxxxxxx>:
Thanks for the response Jakob.

I tried it and got some results. However im having some tough time interpreting them.

First, may I ask what is the difference between the below vehicle ID's:

bl101b1:1
carIn1:1
h1c1:1
randUni1:1

and what is the difference between these 2:

carIn1:1
carIn1:3

Thanks a lot!

Br,
Marvin

On Wednesday, 6 February 2019, 5:11:31 PM CST, Jakob Erdmann <namdre.sumo@xxxxxxxxx> wrote:


You could try activitygen which generates activity-based traffic demand: http://sumo.sourceforge.net/userdoc/Demand/Activity-based_Demand_Generation.html

Am Mo., 4. Feb. 2019 um 18:48 Uhr schrieb Marvin Manalastas <marvin_manalastas27@xxxxxxxxx>:
Hello,

I want to create a realistic mobility model for at least 30 cars.

For example:
Car 1 goes to work from 8:00am-5:00pm, then goes to a grocery store before going back home every weekdays then go to a park on weekdays.
Car 2 goes to school in the morning then go to work then go back to school again before going back home.

Thanks for the help,
Marvin
_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/sumo-user
_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/sumo-user
_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/sumo-user
_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/sumo-user
_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/sumo-user
_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/sumo-user
_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/sumo-user
_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/sumo-user
_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/sumo-user
_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/sumo-user
_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/sumo-user
_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/sumo-user
_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/sumo-user
_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/sumo-user
_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/sumo-user

Back to the top