Can I use randomeTrips.py to create "fromJunction" "toJunction" flows
instead of trips?

On Sun, May 10, 2020 at 2:00 PM Jakob Erdmann <[email protected]> wrote:

> In this case the shortest path that loops back onto the junction is used.
> Arguably, it would be better to exclude these kind of trips from the
> randomTrips results.
>
> Am So., 10. Mai 2020 um 19:35 Uhr schrieb Raheleh Zarei <
> [email protected]>:
>
>> Thanks. It worked.
>>
>> But there is an issue: when source and target nodes are the same, the
>> shortest path seems to be incorrect.
>>
>> When I have a trip like fromJuncation = 1 toJuncation=1, the path that is
>> for example "1013 -1013".
>> I was wondering why when source and destination are identical, it chooses
>> a path like that.
>>
>> On Sun, May 10, 2020 at 2:43 AM Jakob Erdmann <[email protected]>
>> wrote:
>>
>>> Then download this one:
>>> https://raw.githubusercontent.com/eclipse/sumo/master/tools/randomTrips.py
>>> and use
>>> randomTrips.py -n RoutingSim1.net.xml -o test.trips.xml --juntion-taz
>>> --validate
>>>
>>> Am So., 10. Mai 2020 um 02:03 Uhr schrieb Raheleh Zarei <
>>> [email protected]>:
>>>
>>>> Yes, I did. But this one, as you said may create trips with
>>>> disconnected routes.
>>>>
>>>> On Sat, May 9, 2020 at 4:27 PM Jakob Erdmann <[email protected]>
>>>> wrote:
>>>>
>>>>> did you try this?
>>>>> python randomTrips.py -n RoutingSim1.net.xml -o test.trips.xml
>>>>> --juntion-taz
>>>>>
>>>>> Am Sa., 9. Mai 2020 um 17:08 Uhr schrieb Raheleh Zarei <
>>>>> [email protected]>:
>>>>>
>>>>>> I installed version 1.6.0. Then I copied randomTrips.py to my working
>>>>>> directory but it still creates edge-to-edge trips.
>>>>>> I attached the script I'm using to create random trips.
>>>>>>
>>>>>> On Fri, May 8, 2020 at 2:02 AM Jakob Erdmann <[email protected]>
>>>>>> wrote:
>>>>>>
>>>>>>> No. You can still get disconnected trips this way. If you need
>>>>>>> validated trips, then add option --validate
>>>>>>> However, I noticed that the combination of --junction-taz and
>>>>>>> --validate were not working as expected. It's fixed now but you will 
>>>>>>> have
>>>>>>> to update sumo to todays version to make use of this.
>>>>>>>
>>>>>>> You can also replicate the validation by calling
>>>>>>> randomTrips.py -n RoutingSim1.net.xml  -r tmp.rou.xml
>>>>>>> duarouter -n RoutingSim1.net.xml -r tmp.rou.xm --ignore-route-errors
>>>>>>> --write-trips.junctions -o validated_junction_trips.xml
>>>>>>>
>>>>>>> Am Do., 7. Mai 2020 um 21:04 Uhr schrieb Raheleh Zarei <
>>>>>>> [email protected]>:
>>>>>>>
>>>>>>>> Does it validate the route automatically?
>>>>>>>>
>>>>>>>> On Thu, May 7, 2020 at 1:54 PM Jakob Erdmann <[email protected]>
>>>>>>>> wrote:
>>>>>>>>
>>>>>>>>> your route output is overwriting your trip output.
>>>>>>>>> try
>>>>>>>>>     python randomTrips.py -n RoutingSim1.net.xml -o test.trips.xml
>>>>>>>>> --juntion-taz
>>>>>>>>> then check whether the trips have the correct format
>>>>>>>>> The --route-file output will never contain fromJunction or
>>>>>>>>> toJunction because it contains vehicles rather than trips.
>>>>>>>>>
>>>>>>>>> Am Do., 7. Mai 2020 um 18:40 Uhr schrieb Raheleh Zarei <
>>>>>>>>> [email protected]>:
>>>>>>>>>
>>>>>>>>>> Hello Harald,
>>>>>>>>>>
>>>>>>>>>> I created a linux bash script, that creates random trips using
>>>>>>>>>> command below and run it from linux terminal on windows :
>>>>>>>>>>  python randomTrips.py -n ./RoutingSim1.net.xml -o
>>>>>>>>>> ./Trips$j/RoutingSim$i.rou.xml -e $j --junction-taz true   
>>>>>>>>>> --route-file
>>>>>>>>>> ./Trips$j/RoutingSimRoute$i.rou.xml --validate true
>>>>>>>>>>
>>>>>>>>>> randomTrips.py that I call in this command, is the new
>>>>>>>>>> installation of SUMO (1.6) that I copied to my working directory 
>>>>>>>>>> folder in
>>>>>>>>>> windows.
>>>>>>>>>> I don't get any error, but the output still is not correct. It
>>>>>>>>>> creates trips, from edge to edge instead of from junction to 
>>>>>>>>>> junction.
>>>>>>>>>>
>>>>>>>>>> Thanks,
>>>>>>>>>> Raheleh
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> On Thu, May 7, 2020 at 3:41 AM Harald Schaefer <
>>>>>>>>>> [email protected]> wrote:
>>>>>>>>>>
>>>>>>>>>>> Hi Raheleh,
>>>>>>>>>>>
>>>>>>>>>>> have you tried  --junction-taz without the value true?
>>>>>>>>>>>
>>>>>>>>>>> Does your SUMO version support --junction-taz (see output of
>>>>>>>>>>> "python randomTrips.py --help")?
>>>>>>>>>>>
>>>>>>>>>>> Greetings,
>>>>>>>>>>>
>>>>>>>>>>> Harald
>>>>>>>>>>> Am 06.05.20 um 19:35 schrieb Raheleh Zarei:
>>>>>>>>>>>
>>>>>>>>>>> I'm calling command below in Linux:
>>>>>>>>>>>
>>>>>>>>>>> python randomTrips.py -n ./net1.net.xml -o ./routing1.rou.xml -e
>>>>>>>>>>> 10 --junction-taz true --route-file ./Tripstest
>>>>>>>>>>>
>>>>>>>>>>> But I get the following error:
>>>>>>>>>>>
>>>>>>>>>>> Error: On processing option '--junction-taz':
>>>>>>>>>>>  No option with the name 'junction-taz' exists.
>>>>>>>>>>>
>>>>>>>>>>> On Wed, May 6, 2020 at 1:12 PM Jakob Erdmann <
>>>>>>>>>>> [email protected]> wrote:
>>>>>>>>>>>
>>>>>>>>>>>> You can use randomTrips option --junction-taz
>>>>>>>>>>>> The metrics are still the same (all outgoing edges at the
>>>>>>>>>>>> fromJunction are considered for departure and all incoming edges 
>>>>>>>>>>>> of the
>>>>>>>>>>>> toJunction for arrival).
>>>>>>>>>>>>
>>>>>>>>>>>> Am Mi., 6. Mai 2020 um 18:42 Uhr schrieb Raheleh Zarei <
>>>>>>>>>>>> [email protected]>:
>>>>>>>>>>>>
>>>>>>>>>>>>> Hello,
>>>>>>>>>>>>>
>>>>>>>>>>>>> Thank you. I was wondering how I can use these options with
>>>>>>>>>>>>> randomtrips.py scripts? Because this is the way I generate random 
>>>>>>>>>>>>> trips.
>>>>>>>>>>>>> Also, if I use fromJuncation and toJunction, do the routing
>>>>>>>>>>>>> algorithms use different metrics for finding the shortest path?
>>>>>>>>>>>>>
>>>>>>>>>>>>> On Sun, May 3, 2020 at 5:34 PM Jakob Erdmann <
>>>>>>>>>>>>> [email protected]> wrote:
>>>>>>>>>>>>>
>>>>>>>>>>>>>> Yes. Set option --junction-taz and then define trips with
>>>>>>>>>>>>>> attributes 'fromJunction' and 'toJunction'.
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> Am Fr., 1. Mai 2020 um 01:00 Uhr schrieb Raheleh Zarei <
>>>>>>>>>>>>>> [email protected]>:
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> Hello
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> I noticed in SUMO, trips, route, flows and etc, are from
>>>>>>>>>>>>>>> edge to edge, and based on the routing algorithm option, they 
>>>>>>>>>>>>>>> return the
>>>>>>>>>>>>>>> shortest path between those edges. Is there a way to make trips 
>>>>>>>>>>>>>>> and other
>>>>>>>>>>>>>>> assignments model to work from node to node and return the 
>>>>>>>>>>>>>>> shortest path
>>>>>>>>>>>>>>> from a node to another node in the network?
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> Thanks,
>>>>>>>>>>>>>>> Raheleh
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> --
>>>>>>>>>>>>>>> *RAZ*
>>>>>>>>>>>>>>> _______________________________________________
>>>>>>>>>>>>>>> sumo-user mailing list
>>>>>>>>>>>>>>> [email protected]
>>>>>>>>>>>>>>> To unsubscribe from this list, visit
>>>>>>>>>>>>>>> https://www.eclipse.org/mailman/listinfo/sumo-user
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>> _______________________________________________
>>>>>>>>>>>>>> sumo-user mailing list
>>>>>>>>>>>>>> [email protected]
>>>>>>>>>>>>>> To unsubscribe from this list, visit
>>>>>>>>>>>>>> https://www.eclipse.org/mailman/listinfo/sumo-user
>>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>> --
>>>>>>>>>>>>> *RAZ*
>>>>>>>>>>>>> _______________________________________________
>>>>>>>>>>>>> sumo-user mailing list
>>>>>>>>>>>>> [email protected]
>>>>>>>>>>>>> To unsubscribe from this list, visit
>>>>>>>>>>>>> https://www.eclipse.org/mailman/listinfo/sumo-user
>>>>>>>>>>>>>
>>>>>>>>>>>> _______________________________________________
>>>>>>>>>>>> sumo-user mailing list
>>>>>>>>>>>> [email protected]
>>>>>>>>>>>> To unsubscribe from this list, visit
>>>>>>>>>>>> https://www.eclipse.org/mailman/listinfo/sumo-user
>>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> --
>>>>>>>>>>> *RAZ*
>>>>>>>>>>>
>>>>>>>>>>> _______________________________________________
>>>>>>>>>>> sumo-user mailing [email protected]
>>>>>>>>>>> To unsubscribe from this list, visit 
>>>>>>>>>>> https://www.eclipse.org/mailman/listinfo/sumo-user
>>>>>>>>>>>
>>>>>>>>>>> _______________________________________________
>>>>>>>>>>> sumo-user mailing list
>>>>>>>>>>> [email protected]
>>>>>>>>>>> To unsubscribe from this list, visit
>>>>>>>>>>> https://www.eclipse.org/mailman/listinfo/sumo-user
>>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> --
>>>>>>>>>> *RAZ*
>>>>>>>>>> _______________________________________________
>>>>>>>>>> sumo-user mailing list
>>>>>>>>>> [email protected]
>>>>>>>>>> To unsubscribe from this list, visit
>>>>>>>>>> https://www.eclipse.org/mailman/listinfo/sumo-user
>>>>>>>>>>
>>>>>>>>> _______________________________________________
>>>>>>>>> sumo-user mailing list
>>>>>>>>> [email protected]
>>>>>>>>> To unsubscribe from this list, visit
>>>>>>>>> https://www.eclipse.org/mailman/listinfo/sumo-user
>>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> --
>>>>>>>> *RAZ*
>>>>>>>> _______________________________________________
>>>>>>>> sumo-user mailing list
>>>>>>>> [email protected]
>>>>>>>> To unsubscribe from this list, visit
>>>>>>>> https://www.eclipse.org/mailman/listinfo/sumo-user
>>>>>>>>
>>>>>>> _______________________________________________
>>>>>>> sumo-user mailing list
>>>>>>> [email protected]
>>>>>>> To unsubscribe from this list, visit
>>>>>>> https://www.eclipse.org/mailman/listinfo/sumo-user
>>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> *RAZ*
>>>>>> _______________________________________________
>>>>>> sumo-user mailing list
>>>>>> [email protected]
>>>>>> To unsubscribe from this list, visit
>>>>>> https://www.eclipse.org/mailman/listinfo/sumo-user
>>>>>>
>>>>> _______________________________________________
>>>>> sumo-user mailing list
>>>>> [email protected]
>>>>> To unsubscribe from this list, visit
>>>>> https://www.eclipse.org/mailman/listinfo/sumo-user
>>>>>
>>>>
>>>>
>>>> --
>>>> *RAZ*
>>>> _______________________________________________
>>>> sumo-user mailing list
>>>> [email protected]
>>>> To unsubscribe from this list, visit
>>>> https://www.eclipse.org/mailman/listinfo/sumo-user
>>>>
>>> _______________________________________________
>>> sumo-user mailing list
>>> [email protected]
>>> To unsubscribe from this list, visit
>>> https://www.eclipse.org/mailman/listinfo/sumo-user
>>>
>>
>>
>> --
>> *RAZ*
>> _______________________________________________
>> sumo-user mailing list
>> [email protected]
>> To unsubscribe from this list, visit
>> https://www.eclipse.org/mailman/listinfo/sumo-user
>>
> _______________________________________________
> sumo-user mailing list
> [email protected]
> To unsubscribe from this list, visit
> https://www.eclipse.org/mailman/listinfo/sumo-user
>


-- 
*RAZ*
_______________________________________________
sumo-user mailing list
[email protected]
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user

Reply via email to