Hi,

  1.  The option -e “Defines the end time; Later trips will be discarded; 
Defaults to the maximum time that SUMO can represent” 
https://sumo.dlr.de/docs/od2trips.html#time. If you want to have 20 trips from 
0 to 200 you should give this in the OD-Matrix (0.00 0.05).
  2.  No, that’s right. It should be working. Please try from the command line 
“sumo-gui -n yourNetFile.net.xml -r od_trip.xml” (or your od2trips output file) 
or “sumo-gui -n yourNetFile.net.xml -r od_trip.xml -a taz.add.xml”.  If it 
works, the error is in another part of your .sumocfg, maybe you have set the 
start time of the simulation (begin) after 200?

Regards,
Giuliana

Von: [email protected] <[email protected]> Im Auftrag 
von ???
Gesendet: Dienstag, 10. November 2020 03:25
An: Sumo project User discussions <[email protected]>
Betreff: Re: [sumo-user] Some od2trip problems

Thanks for your reply,

1.I run od2trips' instruction "od2trips -c od2trips.config.xml -n taz.add.xml 
-d od.od -e 200 -o od_trip.xml"
2.Yes. I added "<additional-files value="taz.add.xml"/>" to both 
od2trips.config.xml and sumocfg file. Am I misunderstanding?
3.I will try again, thanks for the suggestion

Sincerely.
Yun



<[email protected]<mailto:[email protected]>> 於 2020年11月9日 週一 
下午11:21寫道:
Hi Yun,


  1.  yes, od2trips should be generating 20 trips. How did you run od2trips?
  2.  Did you add the definition of the taz as an additional file? See 
https://sumo.dlr.de/docs/Demand/Importing_O/D_Matrices.html#simple_definition
  3.  I don’t think so, but I’m not 100% sure. What you maybe could do is use 
“getLastStepVehicleNumber” to check the number of vehicles in each edge of a 
taz. See https://sumo.dlr.de/docs/TraCI/Edge_Value_Retrieval.html

Regards,
Giuliana

Von: [email protected]<mailto:[email protected]> 
<[email protected]<mailto:[email protected]>> Im 
Auftrag von ???
Gesendet: Montag, 9. November 2020 15:43
An: Sumo project User discussions 
<[email protected]<mailto:[email protected]>>
Betreff: [sumo-user] Some od2trip problems

Hello,
I have read https://sumo.dlr.de/docs/Demand/Importing_O/D_Matrices.html, there 
are still some problems

1.The first attachment "od.od" is the od-matrix file I used for testing.
According to the instructional video I watched, my setting should be 20 cars 
from taz0 to taz1, but the route file generated by od2trips only has three 
trips. Is my understanding wrong?

2.The second attachment is the route file produced by od2trips
I set it to the <route-file> of the sumocfg file, but there will be no vehicles 
when running the simulation.
After I deleted the attributes "fromTaz" and "toTaz" of the trip in the 
od_route file, the car appeared.
What caused this problem?

3.Does traci have functions about taz? Like getting how many vehicles are 
currently in taz
If not, is there a way to know the current number of taz vehicles in the python 
program?
Because I want to maintain a certain number of vehicles in each taz


Many thanks,
Yun
_______________________________________________
sumo-user mailing list
[email protected]<mailto:[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

Reply via email to