Hi,
SUMO adds a vehicle to the current time slice using randomized rounding,
see the code here:
https://github.com/eclipse/sumo/blob/master/src/od/ODMatrix.cpp#L145 but
as far as I can tell from the current code and our tests the sum for
each OD cell over time should only deviate by at most 1 from the input
even when using fractional values.

Can you share your inputs?

Best regards,
Michael

Am 07.05.19 um 18:21 schrieb Luca Di Costanzo:
> Jackob for some OD pair I have always number smaller than 1 but the sum
> give me a number greater than 1. After OD2TRIPS I got that, as flow, 
> zero as value of generated vehicles instead, for trips I got 480
> vehicles (the sum of OD matrix is around 445).
> 
> So I think that, in trip generation TRIPS there's a methodology he use
> to generate trips even from decimal numbers but I, still, cannot
> understand which is the one
> 
> 
> Ing. Luca Di Costanzo
> 
> -----------------------------
> MsC in Hydraulic and Transportation Engineering 
> Bsc in Civil Engineering 
> contact: [email protected] <mailto:[email protected]>
> skype: lucadicostanzo82
> tel: +39 333 43 92 544
> 
> 
> Il giorno mar 7 mag 2019 alle ore 15:50 Luca Di Costanzo
> <[email protected] <mailto:[email protected]>> ha scritto:
> 
>     Hi all,
> 
>     I want to ask people how SUMO (and more specificly OD2TRIPS)
>     consider the presence of real number (basically with decimal points)
>     in a OD matrix. 
> 
>     I have and OD matrix like the one I attacched to the message and I'm
>     trying to figure out the result in term of trips. Some other
>     software generates the total number of vehicles (supposing the sum
>     is 6.95 they generates 7 vehicle) randomly on some OD. 
> 
>     Is SUMO works in the same mode or not? Thanks in advance
> 
>     Ing. Luca Di Costanzo
> 
>     -----------------------------
>     MsC in Hydraulic and Transportation Engineering 
>     Bsc in Civil Engineering 
>     contact: [email protected] <mailto:[email protected]>
>     skype: lucadicostanzo82
>     tel: +39 333 43 92 544
> 
> 
> _______________________________________________
> sumo-user mailing list
> [email protected]
> To change your delivery options, retrieve your password, or unsubscribe from 
> this list, visit
> https://www.eclipse.org/mailman/listinfo/sumo-user
> 


Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
sumo-user mailing list
[email protected]
To change your delivery options, retrieve your password, or unsubscribe from 
this list, visit
https://www.eclipse.org/mailman/listinfo/sumo-user

Reply via email to