Re: [sumo-user] Problem about the DUE in simulation

2020-06-29 Thread Jane Cheung
Yun-Pang,

Thanks for your reply!
In my case, I also want to do other optimization at 3600 s which will also
change the route. In other words, there' are two steps I want  to
1) First, do my specific optimization algorithm that will influence the
traffic flow from 3601s-7200s,
2) then, use duaIterate.py  to get the equilibrium traffic flow based on
the optimized traffic time in step 1).

The problem that confused me is how could I use *duaIterate.py* to generate
the optimized routes in step 2) during the simulation?
What I can do is to use * duaIterate.py* *before* simulation and use the
last step iterated  ROUTE file as the ROUTE file in sumo.cfg (as you reply
in email )and run sumo.exe at my defined simulation start time, like 0s. I
wonder is there some methods I could do * duaIterate.py(* iterations = 50)
at 3600s and then reload  *duaIterate.py(* iterations = 50) generated route
file and let the simulation continue with that route?

Appreciated!

Best regard,

Jane Cheung

On Mon, Jun 29, 2020 at 7:16 PM  wrote:

> Dear Jane,
>
>
>
> To get an assignment result, which is reached or closed to a DUE state,
> you can use duaIterate.py under the Directory “tool\assign” of your SUMO
> Directory.  The duaIterate.py will do the traffic assignment with the
> DUE-objective iteratively until the defined number of iterations is
> reached. At each iteration, the traffic state in the previous iteration
> will be used for traffic assignment.
>
>
>
> To facilitate the whole assignment process you can also use SUMO’s
> rerouting options at the same time so that simulation objects can consider
> the latest traffic information for mode/route choice during simulation. In
> order to do that you need to give the following commands in addition to the
> required inputs (as indicated “…” below) when running duaIterate.py, where
> 1.0 means all vehicles have the rerouting devices, and 300 means the
> traffic information is updated every 5 mins for vehicles with rerouting
> device. Of course, you can adjust these values according to your need.
>
>
>
> duaIterate.py  sumo--device.rerouting.probability 1.0
> sumo--device.rerouting.period 300
>
>
>
> After running the duaIterate.py you can check the route travel times of
> the simulation objects in the last file ‘*.alt.xml’ , which is an
> alternative route file generated by the duarouter at each iteration. If the
> time difference is larger than your threshold, you can increase the number
> of iterations in the duaIterate.py and re-run the script.
>
>
>
>
>
> I hope, this helps.
>
>
>
> Best regards,
>
> Yun-Pang
>
>
>
> *Von:* sumo-user-boun...@eclipse.org [mailto:sumo-user-boun...@eclipse.org]
> *Im Auftrag von *Jane Cheung
> *Gesendet:* Sonntag, 28. Juni 2020 04:28
> *An:* Sumo project User discussions
> *Betreff:* [sumo-user] Problem about the DUE in simulation
>
>
>
> Dear all,
>
> Could anyone give me some suggestions on how to reroute routes for
> vehicles that have not finished their journeys with DUE algorithm during
> simulation?
>
> For example,
>
> After the simulation running 5min( the duration for the simulation is
> 20min ), I would like to refresh the routes for all vehicles moving or
> going to insert in my network. After refresh routes, the traffic flow state
> is in DUE.
>
> How could I realize it?
>
>
>
> Any kind of help would be appreciated!
>
>
>
> Best regards!
>
>
>
> Jane Cheung
> ___
> sumo-user mailing list
> sumo-user@eclipse.org
> To unsubscribe from this list, visit
> https://www.eclipse.org/mailman/listinfo/sumo-user
>
___
sumo-user mailing list
sumo-user@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user


Re: [sumo-user] Adding VehicleType using TraCI

2020-06-29 Thread Padisala, Shanthan Kumar
Thank you, this worked!

Thanks and Regards,
Shanthan Kumar Padisala


From: sumo-user-boun...@eclipse.org  on behalf 
of Jakob Erdmann 
Sent: Monday, June 29, 2020 3:54 PM
To: Sumo project User discussions 
Subject: Re: [sumo-user] Adding VehicleType using TraCI

You can copy an existing type using vehicletype.copy and afterwards update all 
the attributes as needed.

Am Mo., 29. Juni 2020 um 20:21 Uhr schrieb Padisala, Shanthan Kumar 
mailto:padisal...@buckeyemail.osu.edu>>:
Hello,

Is there any way to add a new vehicle type using TraCI, just like we add a new 
vehicle using - traci.vehicle.add() ?

Thanks and Regards,
Shanthan Kumar Padisala

___
sumo-user mailing list
sumo-user@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user
___
sumo-user mailing list
sumo-user@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user


Re: [sumo-user] Adding VehicleType using TraCI

2020-06-29 Thread Jakob Erdmann
You can copy an existing type using vehicletype.copy and afterwards update
all the attributes as needed.

Am Mo., 29. Juni 2020 um 20:21 Uhr schrieb Padisala, Shanthan Kumar <
padisal...@buckeyemail.osu.edu>:

> Hello,
>
> Is there any way to add a new vehicle type using TraCI, just like we add a
> new vehicle using - traci.vehicle.add() ?
>
> Thanks and Regards,
> Shanthan Kumar Padisala
>
> ___
> sumo-user mailing list
> sumo-user@eclipse.org
> To unsubscribe from this list, visit
> https://www.eclipse.org/mailman/listinfo/sumo-user
>
___
sumo-user mailing list
sumo-user@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user


[sumo-user] Problems to install sumo last version 1.6.0 in mac

2020-06-29 Thread Cesar Leonardo Gonzalez Pinzon
I am trying to install the last version 1.6.0 in my Macbook pro, but it is no 
possible. I am using the homebrew but at te final I have to come back at 
version 0.32 through of macports

Thanks you for help me 


Bestregards 

Cesar Gonzalez   
___
sumo-user mailing list
sumo-user@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user


Re: [sumo-user] reading laneData using socket connection and xml2csv.py

2020-06-29 Thread Sasan Amini
ah, that's why it doesn't work when the scenario is too small. Thanks for
the explanation, a very big help to understand my problem. I will look into
flush() function in Python.

Thanks,
Sasan

On Mon, Jun 29, 2020 at 12:19 PM Michael Behrisch  wrote:

> Hi Sasan,
> those buffers are usually not time triggered but are flushed to the
> output when they reached a certain amount of data.
> You may try to add some calls to flush() in the xml2csv script and also
> on the sumo side.
>
> Best regards,
> Michael
>
> Am 2020-06-29 10:50, schrieb Sasan Amini:
> > Hi Michael,
> >
> > It is actually buffering because the csv file is written when I close
> > the
> > simulation. However, the buffer time is infinite! even the column names
> > are
> > not written before the simulation (the connection with traci) is
> > closed.
> > The surprising fact is that the buffer time for a much larger scenario
> > with
> > many more links is about 0.07 seconds. Could it be anything else?
> >
> > Thanks,
> > Sasan
> >
> > On Sat, Jun 27, 2020 at 10:33 PM Michael Behrisch 
> > wrote:
> >
> >> Hi Sasan,
> >> is it still empty after the simulation finished / got closed? If not,
> >> it
> >> might be simply buffering.
> >>
> >> Best regards,
> >> Michael
> >>
> >> Am 24.06.20 um 11:19 schrieb Sasan Amini:
> >> > Hi,
> >> > I am using xml2csv.py to read the laneData during the simulation. It
> >> > works totally fine for a big scenario, but when I use the same
> >> > configuration on a very small scenario, the CSV file remains empty
> >> > until the traci connection is closed. Is there some hidden feature
> that
> >> > I am not seeing when using socket and xml2csv.py?
> >> >
> >> > Thanks,
> >> > Sasan
> >> >
> >> > ___
> >> > sumo-user mailing list
> >> > sumo-user@eclipse.org
> >> > To unsubscribe from this list, visit
> >> https://www.eclipse.org/mailman/listinfo/sumo-user
> >> >
> >>
> >>
> >> ___
> >> sumo-user mailing list
> >> sumo-user@eclipse.org
> >> To unsubscribe from this list, visit
> >> https://www.eclipse.org/mailman/listinfo/sumo-user
> >>
> >
> > ___
> > sumo-user mailing list
> > sumo-user@eclipse.org
> > To unsubscribe from this list, visit
> > https://www.eclipse.org/mailman/listinfo/sumo-user
>
___
sumo-user mailing list
sumo-user@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user


[sumo-user] Adding VehicleType using TraCI

2020-06-29 Thread Padisala, Shanthan Kumar
Hello,

Is there any way to add a new vehicle type using TraCI, just like we add a new 
vehicle using - traci.vehicle.add() ?

Thanks and Regards,
Shanthan Kumar Padisala

___
sumo-user mailing list
sumo-user@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user


Re: [sumo-user] stop output and trip output do not match

2020-06-29 Thread Jakob Erdmann
When I run your simulation (run.sumocfg), I get 2341 loaded/unloaded
persons in stop-output.
I used attributeStats.py -e stopinfo -a loadedPersons stops-out.xml -p 5
and this gives 622 stops with an average of  3.76367 loaded/unloaded

At the end time of 36000 there are still 28 persons in the simulation
according to the log.
You can also check this by comparing the input count (9000 persons) to the
tripinfo output count (8972 persons).

Looking at the simulation reveals that these persons are waiting at a
busStop after all buses have already left. Some of them such as person 6064
have already used a bus by that time which creates a discrepancy between
loadedPersons and ride count in tripinfo-output.

The pedestrian collisions are (among other things) caused by vehicles that
drive on the sidewalks due to being configured with vClass="ignoring".
The pedestrian jamming (which could be caused by mis-dimensioned
sidewalks/crossings) could be responsible for persons missing their buses.

regards,
Jakob




Am Mo., 29. Juni 2020 um 10:21 Uhr schrieb Tripplanner Mumbai <
tripplanner...@gmail.com>:

> Hello,
> *"tripinfo-output only contains persons that have completed their whole
> itinerary (all walks and rides)"*
> The above may be true, but your later statements explain the issues
> partially. I changed the time from 3600 to 36000, and also, restored the
> bus route input file. However, I still find that stop-output contains 2318
> boarding and alighting, whereas trip-output contains 2310 trips for
> passengers. I suspected that maybe those 8 passengers are stuck in jams
> and/or collisions. To my surprise, I found that the number of jams and
> collisions are certainly more than 8 (at least 5 times of it). Then, what
> is the reason for having such a gap between stop-output count and
> trip-output count.
>
> When I ran the same simulation using TraCI, I found that total trips on
> buses 2341.
>
> I am attaching the latest network which I used for simulation in the
> command line as well as in TraCI. Please recheck, there might be some
> issues in the software itself ( I am using a version which was updated on
> June 25, 2020).
>
> On Mon, 29 Jun 2020 at 11:52, Jakob Erdmann  wrote:
>
>> tripinfo-output only contains persons that have completed their whole
>> itinerary (all walks and rides). Since your configuration ends the
>> simulation at step 3600 it will prevent output of all persons still
>> travelling at that time even though they already rode a bus and thus show
>> up in the stop-output.
>>
>> Am Fr., 26. Juni 2020 um 10:35 Uhr schrieb Tripplanner Mumbai <
>> tripplanner...@gmail.com>:
>>
>>> Hello,
>>> Again, I tried this with the latest development version of SUMO which
>>> was updated on June 25, 2020. However, the same issue continues, *i.e.*,
>>> the number of boarded and alighted persons in stop output is more than the
>>> number of records in trip output.
>>> Kindly, look into it at earliest.
>>> thanks and regards,
>>> Dillip Rout
>>>
>>> On Wed, 24 Jun 2020 at 17:20, Tripplanner Mumbai <
>>> tripplanner...@gmail.com> wrote:
>>>
 Hello,
 Recently, I implemented public transit lines in SUMO. I encountered
 that the number of passengers boarded at a stop according to stop output,
 does not  match with the number of passengers making successful trips
 according to trip output. I was assuming that every passenger who boards
 into some bus at any stop has an entry in trip output as well. I tried with
 TraCI as well as a simple command line, but in either case, I found that
 the passenger count varies. Typically, the total number passengers boarded
 (as per stop output) is greater than the total number of passengers in the
 trip output. However, when I extracted additional data through TraCI, then
 I found that the number of passengers at various stops as per stop output
 is the same as the extracted information about each passenger through 
 TraCI.

 I am attaching my network along with TraCI code (demo-i.py) to be
 tested by others. Also, I am attaching a few csv files which I have
 extracted from the xml output files for easier reference.

 Please clarify if the stop output count of passengers has to be the
 same as the number of trips as per trip output or not.

 thanks and regards,
 Dillip Rout

 ___
>>> sumo-user mailing list
>>> sumo-user@eclipse.org
>>> To unsubscribe from this list, visit
>>> https://www.eclipse.org/mailman/listinfo/sumo-user
>>>
>> ___
>> sumo-user mailing list
>> sumo-user@eclipse.org
>> To unsubscribe from this list, visit
>> https://www.eclipse.org/mailman/listinfo/sumo-user
>>
> ___
> sumo-user mailing list
> sumo-user@eclipse.org
> To unsubscribe from this list, visit
> https://www.eclipse.org/mailman/listinfo/sumo-user
>

Re: [sumo-user] Problem about the DUE in simulation

2020-06-29 Thread yun-pang.floetteroed
Dear Jane,

To get an assignment result, which is reached or closed to a DUE state, you can 
use duaIterate.py under the Directory “tool\assign” of your SUMO Directory.  
The duaIterate.py will do the traffic assignment with the DUE-objective 
iteratively until the defined number of iterations is reached. At each 
iteration, the traffic state in the previous iteration will be used for traffic 
assignment.

To facilitate the whole assignment process you can also use SUMO’s rerouting 
options at the same time so that simulation objects can consider the latest 
traffic information for mode/route choice during simulation. In order to do 
that you need to give the following commands in addition to the required inputs 
(as indicated “…” below) when running duaIterate.py, where 1.0 means all 
vehicles have the rerouting devices, and 300 means the traffic information is 
updated every 5 mins for vehicles with rerouting device. Of course, you can 
adjust these values according to your need.

duaIterate.py  sumo--device.rerouting.probability 1.0 
sumo--device.rerouting.period 300

After running the duaIterate.py you can check the route travel times of the 
simulation objects in the last file ‘*.alt.xml’ , which is an alternative route 
file generated by the duarouter at each iteration. If the time difference is 
larger than your threshold, you can increase the number of iterations in the 
duaIterate.py and re-run the script.


I hope, this helps.

Best regards,
Yun-Pang

Von: sumo-user-boun...@eclipse.org [mailto:sumo-user-boun...@eclipse.org] Im 
Auftrag von Jane Cheung
Gesendet: Sonntag, 28. Juni 2020 04:28
An: Sumo project User discussions
Betreff: [sumo-user] Problem about the DUE in simulation

Dear all,
Could anyone give me some suggestions on how to reroute routes for vehicles 
that have not finished their journeys with DUE algorithm during simulation?
For example,
After the simulation running 5min( the duration for the simulation is 20min ), 
I would like to refresh the routes for all vehicles moving or going to insert 
in my network. After refresh routes, the traffic flow state is in DUE.
How could I realize it?

Any kind of help would be appreciated!

Best regards!

Jane Cheung
___
sumo-user mailing list
sumo-user@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user


Re: [sumo-user] Generate the renew route in cousmerized intervals

2020-06-29 Thread Jane Cheung
Jakob,
Thanks for your reply!

There is one more question.  I will use a more specific way to describe my
problem.

I build the *sumo.cfg, *which contains specific route.xml and other
essential files. The simulation period is 0-7200s.

Then, I start my simulation at 0s. When the simulation time reaches 3600 s,
I would like to let all vehicles moving in the DUE (
https://sumo.dlr.de/docs/Demand/Dynamic_User_Assignment.html#iterative_assignment_dynamic_user_equilibrium
)state(not private optimization state) in the last simulation time (3600 s
- 7200 s).
As described in the document, the command to do that is :
python duaIterate.py -n  -t  -l 
Where the route.xml or trips.xml needs to be the renewed route.xmL instead
of the original route.xml at the 0s.


To use the command above to get the equilibrium traffic flow at the time
point 3600s, how could I get the renewed* route.xml *file when my*
simulation* running at 3600s? After that, the simulation still can run
continuously to reach the predefined end time point in my simulation?

Best regards!

Jane Cheung


On Mon, Jun 29, 2020 at 2:27 PM Jakob Erdmann  wrote:

> Duarouter and Sumo use the same code for routing. You can therefore use
> TraCI routing commands to accomplish this:
> https://sumo.dlr.de/docs/Simulation/Routing.html#traci
> Alternatively, you could store the state of the network (in regard to
> averaged travel times) using either
> -
> https://sumo.dlr.de/docs/Simulation/Output/Lane-_or_Edge-based_Traffic_Measures.html
> -
> https://sumo.dlr.de/docs/Demand/Automatic_Routing.html#investigating_edge_weights
> And then load the generated file along with the custom route input file
> into duarouter.
>
> Am Fr., 26. Juni 2020 um 15:55 Uhr schrieb Jane Cheung <
> cheung180...@gmail.com>:
>
>> Dear all,
>> I have one problem while I am using SUMO, and I would like to get the
>> help of you!
>>
>> How could I call the DUAROUTER.exe in one specific time point in my
>> simulation?
>> How could I use the unfinished route file to generate the new route file
>> for vehicles that have not finished their route in the network,  just like
>> the function has been realized for the parking area(
>> https://sumo.dlr.de/docs/Simulation/Rerouter.html#determining_the_alternative_parking_area
>> )?
>>
>> For example,
>> the route for vehicle ID = myvehicle1  is route= 'E1 E2  E3 E4'. I am
>> going to reroute the original route for myvehilce1 when it is moving on E3.
>> How could I realize the function in SUMO? To make the E3 as the arrivalPOS
>> and then make E3 as the refreshed departsPOS? or other methods? Looking
>> forward to your reply!
>>
>> Best regards!
>>
>>
>>
>> Jane Cheung
>> ___
>> sumo-user mailing list
>> sumo-user@eclipse.org
>> To unsubscribe from this list, visit
>> https://www.eclipse.org/mailman/listinfo/sumo-user
>>
> ___
> sumo-user mailing list
> sumo-user@eclipse.org
> To unsubscribe from this list, visit
> https://www.eclipse.org/mailman/listinfo/sumo-user
>
___
sumo-user mailing list
sumo-user@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user


Re: [sumo-user] mean speed - traffic measures output

2020-06-29 Thread Jakob Erdmann
Speed is just the average of all speeds on the edge over the given time.
Each time step the speeds on the edge are sampled and the average of all
samples (over the specified time interval) is used. Slower vehicles spend
more time on an edge and thus contribute more samples and this explains the
difference to a point-average of speeds.



Am Mo., 29. Juni 2020 um 09:32 Uhr schrieb Natalia Liora :

> Hi,
>
> In the generated output file for the traffic measures for each edge/lane (
> https://sumo.dlr.de/docs/Simulation/Output/Lane-_or_Edge-based_Traffic_Measures.html
> )
> the definition of estimated mean speed is given as "This is an average
> over time and space (space-mean-speed), rather than a local average over
> the vehicles (time-mean-speed). Since slow vehicles spend more time on the
> edge they will have a proportionally bigger influence on average speed. “
>
> How the term “space” is defined ? Could you please specify how exactly the
> mean speed has been estimated?
>
> I understand that the generated speed does not take into account the mean
> speed value over all the vehicles per second counted on the edge  and
> finally averaged over the whole simulation period, right ?
>
> Thank you.
> Regards,
> Natalia
>
>
> ___
> sumo-user mailing list
> sumo-user@eclipse.org
> To unsubscribe from this list, visit
> https://www.eclipse.org/mailman/listinfo/sumo-user
>
___
sumo-user mailing list
sumo-user@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user


Re: [sumo-user] reading laneData using socket connection and xml2csv.py

2020-06-29 Thread Michael Behrisch

Hi Sasan,
those buffers are usually not time triggered but are flushed to the 
output when they reached a certain amount of data.
You may try to add some calls to flush() in the xml2csv script and also 
on the sumo side.


Best regards,
Michael

Am 2020-06-29 10:50, schrieb Sasan Amini:

Hi Michael,

It is actually buffering because the csv file is written when I close 
the
simulation. However, the buffer time is infinite! even the column names 
are
not written before the simulation (the connection with traci) is 
closed.
The surprising fact is that the buffer time for a much larger scenario 
with

many more links is about 0.07 seconds. Could it be anything else?

Thanks,
Sasan

On Sat, Jun 27, 2020 at 10:33 PM Michael Behrisch  
wrote:



Hi Sasan,
is it still empty after the simulation finished / got closed? If not, 
it

might be simply buffering.

Best regards,
Michael

Am 24.06.20 um 11:19 schrieb Sasan Amini:
> Hi,
> I am using xml2csv.py to read the laneData during the simulation. It
> works totally fine for a big scenario, but when I use the same
> configuration on a very small scenario, the CSV file remains empty
> until the traci connection is closed. Is there some hidden feature that
> I am not seeing when using socket and xml2csv.py?
>
> Thanks,
> Sasan
>
> ___
> sumo-user mailing list
> sumo-user@eclipse.org
> To unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/sumo-user
>


___
sumo-user mailing list
sumo-user@eclipse.org
To unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/sumo-user



___
sumo-user mailing list
sumo-user@eclipse.org
To unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/sumo-user

___
sumo-user mailing list
sumo-user@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user


Re: [sumo-user] reading laneData using socket connection and xml2csv.py

2020-06-29 Thread Sasan Amini
Hi Michael,

It is actually buffering because the csv file is written when I close the
simulation. However, the buffer time is infinite! even the column names are
not written before the simulation (the connection with traci) is closed.
The surprising fact is that the buffer time for a much larger scenario with
many more links is about 0.07 seconds. Could it be anything else?

Thanks,
Sasan

On Sat, Jun 27, 2020 at 10:33 PM Michael Behrisch  wrote:

> Hi Sasan,
> is it still empty after the simulation finished / got closed? If not, it
> might be simply buffering.
>
> Best regards,
> Michael
>
> Am 24.06.20 um 11:19 schrieb Sasan Amini:
> > Hi,
> > I am using xml2csv.py to read the laneData during the simulation. It
> > works totally fine for a big scenario, but when I use the same
> > configuration on a very small scenario, the CSV file remains empty
> > until the traci connection is closed. Is there some hidden feature that
> > I am not seeing when using socket and xml2csv.py?
> >
> > Thanks,
> > Sasan
> >
> > ___
> > sumo-user mailing list
> > sumo-user@eclipse.org
> > To unsubscribe from this list, visit
> https://www.eclipse.org/mailman/listinfo/sumo-user
> >
>
>
> ___
> sumo-user mailing list
> sumo-user@eclipse.org
> To unsubscribe from this list, visit
> https://www.eclipse.org/mailman/listinfo/sumo-user
>
___
sumo-user mailing list
sumo-user@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user


[sumo-user] mean speed - traffic measures output

2020-06-29 Thread Natalia Liora
Hi,

In the generated output file for the traffic measures for each edge/lane 
(https://sumo.dlr.de/docs/Simulation/Output/Lane-_or_Edge-based_Traffic_Measures.html)
 
the definition of estimated mean speed is given as "This is an average over 
time and space (space-mean-speed), rather than a local average over the 
vehicles (time-mean-speed). Since slow vehicles spend more time on the edge 
they will have a proportionally bigger influence on average speed. “

How the term “space” is defined ? Could you please specify how exactly the mean 
speed has been estimated?

I understand that the generated speed does not take into account the mean speed 
value over all the vehicles per second counted on the edge  and finally 
averaged over the whole simulation period, right ? 

Thank you.
Regards,
Natalia


___
sumo-user mailing list
sumo-user@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user


Re: [sumo-user] Output differences between TraCI & libsumo for mesosim

2020-06-29 Thread Jakob Erdmann
If you use the same network, there will be differences in the recorded
distances (and thus travel times) due to the way junctions are treated
differently. See
https://sumo.dlr.de/docs/Simulation/Distances.html#no-internal-links_meso

Am Sa., 27. Juni 2020 um 22:40 Uhr schrieb Michael Behrisch :

> Hi Marcel,
> there should be no difference between traci and libsumo but since traci
> for meso is a quite recent addition there might still be some bugs. Can
> you share your scenario?
>
> Best regards,
> Michael
>
> Am 24.06.20 um 18:10 schrieb marcelreppi:
> > Hello,
> >
> > I have a custom TraCI scenario and for performance improvement I wanted
> to
> > test how much faster libsumo and mesosim are in my case.
> > I am only interested in the routes vehicles take and how much distance
> they
> > have driven.
> > I would expect that my output data is the same when using TraCI or
> libsumo
> > with/without mesosim.
> > I wanted to make sure that my output is not affected by some unexpected
> > behavior so I collected some data and realized that there are quite some
> > differences.
> >
> > I have some polygons which I call zones and I track the vehicle movement
> in
> > these zones.
> > The driven distances are sometimes very different between the different
> > execution settings (TraCI/libsumo with/without mesosim).
> >
> > I have attached a picture with my collected data.
> > I tested two scenarios:
> > - "n" which is just regular SUMO with only periodic rerouting
> > - "rr" which is TraCI with periodic rerouting AND custom rerouting
> >
> > Is my expectation wrong? Am I missing something?
> >
> > Any help is appreciated!
> >
> > Thanks!
> >
> > Best regards
> > Marcel
> >
> > <
> http://sumo-user-mailing-list.90755.n8.nabble.com/file/t349/sumo-comparison.png>
>
> >
> >
> >
> >
> > --
> > Sent from: http://sumo-user-mailing-list.90755.n8.nabble.com/
> > ___
> > sumo-user mailing list
> > sumo-user@eclipse.org
> > To unsubscribe from this list, visit
> https://www.eclipse.org/mailman/listinfo/sumo-user
> >
>
>
> ___
> sumo-user mailing list
> sumo-user@eclipse.org
> To unsubscribe from this list, visit
> https://www.eclipse.org/mailman/listinfo/sumo-user
>
___
sumo-user mailing list
sumo-user@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user


Re: [sumo-user] Generate the renew route in user defined intervals

2020-06-29 Thread Jakob Erdmann
https://sumo.dlr.de/docs/FAQ.html#i_asked_a_question_on_the_mailing_list_and_did_not_get_an_answer_within_x_days_why


Am Sa., 27. Juni 2020 um 13:11 Uhr schrieb Jane Cheung <
cheung180...@gmail.com>:

> Dear all,
> I have one problem while I am using SUMO, and I would like to get the help
> of you!
>
> How could I call the DUAROUTER.exe in one specific time point in my
> simulation?
> How could I use the unfinished route file to generate the new route file
> for vehicles that have not finished their route in the network,  just like
> the function has been realized for the parking area(
> https://sumo.dlr.de/docs/Simulation/Rerouter.html#determining_the_alternative_parking_area
> )?
>
> For example,
> the route for vehicle ID = myvehicle1  is route= 'E1 E2  E3 E4'. I am
> going to reroute the original route for myvehilce1 when it is moving on E3.
> How could I realize the function in SUMO? To make the E3 as the arrivalPOS
> and then make E3 as the refreshed departsPOS? or other methods? Looking
> forward to your reply!
>
> Best regards!
>
>
>
> Jane Cheung
> ___
> sumo-user mailing list
> sumo-user@eclipse.org
> To unsubscribe from this list, visit
> https://www.eclipse.org/mailman/listinfo/sumo-user
>
___
sumo-user mailing list
sumo-user@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user


Re: [sumo-user] SUMO: Queries

2020-06-29 Thread Jakob Erdmann
Hello,

1) Yes. You can use fromXY and fromLonLat to define vehicle trips: see
https://sumo.dlr.de/docs/Demand/Shortest_or_Optimal_Path_Routing.html
2) Yes. You can define a route that consists of only two non-consecutive
edges. A new vehicle with such a route will infer that it must find a route
between both edges (i.e. it will be treated like a trip definition).
3) traci._vehicle is the internal module that holds the code (you cannot
use this directly). traci.vehicle is an object constructed at runtime based
on _vehicle which you need to use in order to make traci calls

regards,
Jakob

Am Sa., 27. Juni 2020 um 10:19 Uhr schrieb Padisala, Shanthan Kumar <
padisal...@buckeyemail.osu.edu>:

> Hello everyone,
>
> I am new to SUMO and I have a few queries on using it:
>
>1. Is there any function that creates a routes file if we just input
>initial and final points?
>2. Is there any way to add routes or trips into the SUMO by using
>TraCI commands, similar to adding vehicles into SUMO simulation using the
>command - 'traci.vehicle.add()'?
>3. What is the difference between 'traci.vehicle.' and
>'traci._vehicle.' and why do both of these have different functions in 
> them?
>
> Thanks and Regards,
> Shanthan Kumar Padisala
>
> ___
> sumo-user mailing list
> sumo-user@eclipse.org
> To unsubscribe from this list, visit
> https://www.eclipse.org/mailman/listinfo/sumo-user
>
___
sumo-user mailing list
sumo-user@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user


Re: [sumo-user] Generate the renew route in cousmerized intervals

2020-06-29 Thread Jakob Erdmann
Duarouter and Sumo use the same code for routing. You can therefore use
TraCI routing commands to accomplish this:
https://sumo.dlr.de/docs/Simulation/Routing.html#traci
Alternatively, you could store the state of the network (in regard to
averaged travel times) using either
-
https://sumo.dlr.de/docs/Simulation/Output/Lane-_or_Edge-based_Traffic_Measures.html
-
https://sumo.dlr.de/docs/Demand/Automatic_Routing.html#investigating_edge_weights
And then load the generated file along with the custom route input file
into duarouter.

Am Fr., 26. Juni 2020 um 15:55 Uhr schrieb Jane Cheung <
cheung180...@gmail.com>:

> Dear all,
> I have one problem while I am using SUMO, and I would like to get the help
> of you!
>
> How could I call the DUAROUTER.exe in one specific time point in my
> simulation?
> How could I use the unfinished route file to generate the new route file
> for vehicles that have not finished their route in the network,  just like
> the function has been realized for the parking area(
> https://sumo.dlr.de/docs/Simulation/Rerouter.html#determining_the_alternative_parking_area
> )?
>
> For example,
> the route for vehicle ID = myvehicle1  is route= 'E1 E2  E3 E4'. I am
> going to reroute the original route for myvehilce1 when it is moving on E3.
> How could I realize the function in SUMO? To make the E3 as the arrivalPOS
> and then make E3 as the refreshed departsPOS? or other methods? Looking
> forward to your reply!
>
> Best regards!
>
>
>
> Jane Cheung
> ___
> sumo-user mailing list
> sumo-user@eclipse.org
> To unsubscribe from this list, visit
> https://www.eclipse.org/mailman/listinfo/sumo-user
>
___
sumo-user mailing list
sumo-user@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user


Re: [sumo-user] stop output and trip output do not match

2020-06-29 Thread Jakob Erdmann
tripinfo-output only contains persons that have completed their whole
itinerary (all walks and rides). Since your configuration ends the
simulation at step 3600 it will prevent output of all persons still
travelling at that time even though they already rode a bus and thus show
up in the stop-output.

Am Fr., 26. Juni 2020 um 10:35 Uhr schrieb Tripplanner Mumbai <
tripplanner...@gmail.com>:

> Hello,
> Again, I tried this with the latest development version of SUMO which was
> updated on June 25, 2020. However, the same issue continues, *i.e.*, the
> number of boarded and alighted persons in stop output is more than the
> number of records in trip output.
> Kindly, look into it at earliest.
> thanks and regards,
> Dillip Rout
>
> On Wed, 24 Jun 2020 at 17:20, Tripplanner Mumbai 
> wrote:
>
>> Hello,
>> Recently, I implemented public transit lines in SUMO. I encountered that
>> the number of passengers boarded at a stop according to stop output, does
>> not  match with the number of passengers making successful trips according
>> to trip output. I was assuming that every passenger who boards into some
>> bus at any stop has an entry in trip output as well. I tried with TraCI as
>> well as a simple command line, but in either case, I found that the
>> passenger count varies. Typically, the total number passengers boarded (as
>> per stop output) is greater than the total number of passengers in the trip
>> output. However, when I extracted additional data through TraCI, then I
>> found that the number of passengers at various stops as per stop output is
>> the same as the extracted information about each passenger through TraCI.
>>
>> I am attaching my network along with TraCI code (demo-i.py) to be tested
>> by others. Also, I am attaching a few csv files which I have extracted from
>> the xml output files for easier reference.
>>
>> Please clarify if the stop output count of passengers has to be the same
>> as the number of trips as per trip output or not.
>>
>> thanks and regards,
>> Dillip Rout
>>
>> ___
> sumo-user mailing list
> sumo-user@eclipse.org
> To unsubscribe from this list, visit
> https://www.eclipse.org/mailman/listinfo/sumo-user
>
___
sumo-user mailing list
sumo-user@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user


Re: [sumo-user] DFROUTER Detector type is discarded for most of detectors

2020-06-29 Thread Jakob Erdmann
Hello,
using  only edgeData will work just fine. To make use of the edgeData that
you generated (counts are stored in 'qPKW`), you need to set routeSampler
option
--edgedata-attribute qPKW
If your flowfile contains temporal changes in flow, you need to update
edgeDtataFromFlow.py to the latest development version because the version
released with 1.6.0 does not handle the time-information correctly.
https://sumo.dlr.de/docs/Downloads.php#sumo_-_latest_development_version

regards,
Jakob



Am Fr., 26. Juni 2020 um 08:55 Uhr schrieb anilbaral :

> Hi Jakob,
> In response to my first email, you suggested me to use routesampler.py
> instead of dfrouter and flowrouter.py. I couldn't obtain sufficient
> information on routesample.py from the SUMO website. Please help me with my
> following questions:
> when using routesampler.py, should we provide both turn count data and edge
> data file? Can turn count data be generated from the flow data that we use
> in DFROUTER? I have generated edge data using edgeDataFromFlow.py, the edge
> data file looks like this:
>
> 
>
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
>
> Do these outputs represent the correct attributes of the edge data file?
>
>
> I have flow data from detectors no turn count data, Is it possible to use
> routesampler.py to generate the vehicles?
>
> Thank You,
> Anil
>
>
>
> --
> Sent from: http://sumo-user-mailing-list.90755.n8.nabble.com/
> ___
> sumo-user mailing list
> sumo-user@eclipse.org
> To unsubscribe from this list, visit
> https://www.eclipse.org/mailman/listinfo/sumo-user
>
___
sumo-user mailing list
sumo-user@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user


Re: [sumo-user] routeSampler: no routes pass edge error

2020-06-29 Thread Jakob Erdmann
The error refers to the routes from your input sample. They do not contain
a single route that passes these edges. If your routes come from
randomTrips you could simply increase the sample size by changing the value
of -e from it's default of 3600 to a higher number. Of course, you could
load routes from another hand-crafted file if you have ideas about where
vehicles passing A and B should come from / go to.

Am Do., 25. Juni 2020 um 18:23 Uhr schrieb Fay Kostopoulou <
fayk...@gmail.com>:

> Dear all,
>
> I am running routeSampler and I see the error "no routes pass edge 'A B'
> (count 100)". I have checked these edges and I see that there is connection
> between them. Could you help me with it? Which could be the problem?
>
> Thank you.
> Fay
> ___
> sumo-user mailing list
> sumo-user@eclipse.org
> To unsubscribe from this list, visit
> https://www.eclipse.org/mailman/listinfo/sumo-user
>
___
sumo-user mailing list
sumo-user@eclipse.org
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user