Re: [sumo-user] Save state does not work properly

2023-06-18 Thread Jakob Erdmann
Thank you for the inputs. The bug is now being tracked at
https://github.com/eclipse/sumo/issues/13449

Am Fr., 9. Juni 2023 um 14:36 Uhr schrieb manos kampitakis <
mankampita...@gmail.com>:

> Jacob I have attached a mini example of how I save the state. Also, I
> noticed that there are saved vehicles that have depart time after the saved
> state duration. For example, in the provided script I run the
> simulation until 900 sec and I save the state and inside there are
> vehicles that depart after 900 sec.
>
> Best regards,
> Manos
>
> Στις Παρ 9 Ιουν 2023 στις 3:00 μ.μ., ο/η manos kampitakis <
> mankampita...@gmail.com> έγραψε:
>
>> Jacob I have attached a mini example of how I save the state. Also, I
>> noticed that there are saved vehicles that have depart time after the saved
>> state duration. For example, in the provided script I run the
>> simulation until 900 sec and I save the state and inside there are
>> vehicles that depart after 900 sec.
>>
>> Best regards,
>> Manos
>>
>> Στις Πέμ 8 Ιουν 2023 στις 8:17 μ.μ., ο/η Jakob Erdmann <
>> namdre.s...@gmail.com> έγραψε:
>>
>>> In my own test, saving and loading state with routeDistributions is
>>> working and I have no idea how arrived vehicles and up in your state file.
>>> If you could provide an example (i.e. sumocfg, traci script, xml input
>>> files) for reproducing the unusal state file, this would greatly aid in
>>> fixing the problem.
>>>
>>> Am Do., 8. Juni 2023 um 17:33 Uhr schrieb manos kampitakis <
>>> mankampita...@gmail.com>:
>>>
 Hi Jakob,

 sorry for replying here but I know what is happening. Until the point I
 run my simulation I have 319 arrived vehicles. As far as I can understand
 those vehicles should not be stored in the state file (they also don't have
 a trip info device).
 Moreover there are exactly 319 "broken" routeDistribution tags (the
 ones that correspond to the arrived vehicles). Because I used SUE (max
 alternatives = 5) in one distribution I may have 1 or more (until 5)
 possible
 routes. I give an example of a broken routeDistribution:

 

 The vehicle with id "7107" is an already arrived vehicle. The vehicle
 in the route file is depicted as follows:
   >>> fromTaz="in_18" id="7107" toTaz="left8" type="warm_up_car">
 
   >>> probability="1.33352733"/>(!7107#0)
   >>> probability="1.32770984"/>(!7107#1)
   >>> probability="1.33876284"/> (!7107#2)
 

 The vehicle during the simulation used the route  edges="D6D7 D7C7 C7B7
 B7A7 A7A8 A8left8" which corresponds to !7107#2 which is the missing route
 id from the state xml file. The only ones written are:

 
 

 Best regards,
 Manos

 Στις Πέμ 8 Ιουν 2023 στις 4:53 μ.μ., ο/η Jakob Erdmann <
 namdre.s...@gmail.com> έγραψε:

> Please open up a ticket at https://github.com/eclipse/sumo/issues/new
> and attach minimal input files for replicating your problem (please try to
> pare down your scenario to the bare minimum).
>
> Am Do., 8. Juni 2023 um 15:43 Uhr schrieb manos kampitakis <
> mankampita...@gmail.com>:
>
>> Hi all,
>>
>> I want to run my simulation up to a point (e.g. 2700s) and then save
>> this state (using traci.simulation.saveState()). It seems that the 
>> function
>> does not work properly. For example, when I am trying to load the saved
>> state I get the following error message:
>> Error: Unknown route '!#_1532#0' in distribution '!#_1532'. (this
>> happens many times inside the saved state xml)
>> The paths are generated using SUE (max alternatives = 5), teleport is
>> deactivated and during the run, until the point I run my simulation in
>> order to save it, I get no error whatsoever from traci.
>>
>> Best regards,
>> Manos
>> ___
>> 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 mailing list
> sumo-user@eclipse.org
> To unsubscribe from this list, visit
> https://www.eclipse.org/mailman/listinfo/sumo-user
>

Re: [sumo-user] Mismatch in Traffic Density in SUMO:

2023-06-18 Thread Jakob Erdmann
I'm afraid I don't even understand your requirement.
The statement "so that it won't affect ... density" is a contradiction to
your earlier problem of "traffic density does not match"
Also, "density" is intrinsically linked to the number of vehicles in the
scenario.
Doing any change to vehicle insertion (the way a scenario is "populated")
will affect density.
Thus there is no feasible advice to give on insertion that won't affect
density.


Am So., 18. Juni 2023 um 10:14 Uhr schrieb Mayank Singh <
mayanksingh.dai...@gmail.com>:

> Respected Sir,
> In my simulation scenario, there is no presence of leading vehicles and
> due to that speed remains high throughout the simulation, which is also
> visible in attached results.
>
> Therefore, kindly suggest me that how can I populate the traffic in real
> scenario, so that it won't affect my traffic parameters like speed and
> density while doing the simulation.
>
> Regards,
> Mayank
>
> On Fri, 2 Jun, 2023, 6:05 pm Jakob Erdmann,  wrote:
>
>> You can lower the simulation density by increasing the values of 'tau'
>> and 'minGap'. Note that it might be useful to draw these values from a
>> distribution rather than having the same value for the whole fleet (
>> https://sumo.dlr.de/docs/Tools/Misc.html#createvehtypedistributionpy)
>>
>> However, you also need to make sure that you are picking the correct data
>> from the simulation as this might also be responsible for a mismatch
>> between the curves. Here are a few comments:
>> - What exactly are these plots showing?
>> - Your y axis only mentions "vehicle count" which is neither a unit for
>> density (due to lack of spatial component) nor for flow (due to lack of
>> time component).
>>  - Likewise, the speed values requires some explanation. Is this averaged
>> at a cross section (time mean speed) or over an area (space mean speed) -
>> the question applies both to the real world data as well as the simulation
>> data
>> - How was the real world dataset derived and what values (output files)
>> are you taking from the simulation?
>> - The fit of the speeds already suggests some systematic error (possibly
>> in the distribution of desired speeds) but also, the shapes of the speed
>> curves are so similar as to suggest some form of calibration. Whatever you
>> have been doing with the speeds is probably relevant to understanding the
>> density mismatch.
>>
>>
>>
>>
>> Am Fr., 2. Juni 2023 um 14:03 Uhr schrieb Mayank Singh <
>> mayanksingh.dai...@gmail.com>:
>>
>>> Respected Sir,
>>> In my scenario, traffic flow matches a given dataset.
>>> But the traffic density does not match correctly.
>>> So, what are the parameters that we should consider or tune while doing
>>> the simulation? So that traffic density also gets aligned.
>>> I have attached my graphs of traffic flow, traffic density, and traffic
>>> speed for your reference.
>>>
>>>
>>> Regards,
>>> Mayank
>>> ___
>>> 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] help understanding how to repeat car insertion on a route

2023-06-18 Thread Jakob Erdmann
the 'repeat' value of a route is for circular routes (the edges repeat).
For repated vehicles, you need to define a flow (in vehicle mode). You can
read about the concept here:
https://sumo.dlr.de/docs/Definition_of_Vehicles%2C_Vehicle_Types%2C_and_Routes.html#repeated_vehicles_flows
There are also tutorials/videos on flows:
https://sumo.dlr.de/docs/Tutorials/index.html#sumo_user_conference_tutorials

Am Mo., 19. Juni 2023 um 06:47 Uhr schrieb Doug Frasher :

> Hello,
> I simply want multiple cars to enter the simulation one after the other at
> some interval.
> In the route dialog, in inpsector mode, If I try to set the value of
> repeat to a positive integer, and use a cycle of say a few seconds, I get
> this error:
> Error: Disconnected route 'r_0' when repeating.
> What am I misunderstanding here?
>
> Thanks in advance for any help or suggestions.
> Doug
> ___
> 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] help understanding how to repeat car insertion on a route

2023-06-18 Thread Doug Frasher
Hello,
I simply want multiple cars to enter the simulation one after the other at
some interval.
In the route dialog, in inpsector mode, If I try to set the value of repeat
to a positive integer, and use a cycle of say a few seconds, I get this
error:
Error: Disconnected route 'r_0' when repeating.
What am I misunderstanding here?

Thanks in advance for any help or suggestions.
Doug
___
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] Mismatch in Traffic Density in SUMO:

2023-06-18 Thread Mayank Singh
Respected Sir,
In my simulation scenario, there is no presence of leading vehicles and due
to that speed remains high throughout the simulation, which is also visible
in attached results.

Therefore, kindly suggest me that how can I populate the traffic in real
scenario, so that it won't affect my traffic parameters like speed and
density while doing the simulation.

Regards,
Mayank

On Fri, 2 Jun, 2023, 6:05 pm Jakob Erdmann,  wrote:

> You can lower the simulation density by increasing the values of 'tau' and
> 'minGap'. Note that it might be useful to draw these values from a
> distribution rather than having the same value for the whole fleet (
> https://sumo.dlr.de/docs/Tools/Misc.html#createvehtypedistributionpy)
>
> However, you also need to make sure that you are picking the correct data
> from the simulation as this might also be responsible for a mismatch
> between the curves. Here are a few comments:
> - What exactly are these plots showing?
> - Your y axis only mentions "vehicle count" which is neither a unit for
> density (due to lack of spatial component) nor for flow (due to lack of
> time component).
>  - Likewise, the speed values requires some explanation. Is this averaged
> at a cross section (time mean speed) or over an area (space mean speed) -
> the question applies both to the real world data as well as the simulation
> data
> - How was the real world dataset derived and what values (output files)
> are you taking from the simulation?
> - The fit of the speeds already suggests some systematic error (possibly
> in the distribution of desired speeds) but also, the shapes of the speed
> curves are so similar as to suggest some form of calibration. Whatever you
> have been doing with the speeds is probably relevant to understanding the
> density mismatch.
>
>
>
>
> Am Fr., 2. Juni 2023 um 14:03 Uhr schrieb Mayank Singh <
> mayanksingh.dai...@gmail.com>:
>
>> Respected Sir,
>> In my scenario, traffic flow matches a given dataset.
>> But the traffic density does not match correctly.
>> So, what are the parameters that we should consider or tune while doing
>> the simulation? So that traffic density also gets aligned.
>> I have attached my graphs of traffic flow, traffic density, and traffic
>> speed for your reference.
>>
>>
>> Regards,
>> Mayank
>> ___
>> 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