Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] Flow definition using Poisson

You can find a working example at https://sumo.dlr.de/extractTest.php?path=sumo/spec/flow/poisson_0.1
If it doesn't work for you, then the version of sumo you are calling is not 1.13.0
(a quick way to check is by calling 'sumo' on the command line without arguments)

Am Di., 24. Mai 2022 um 13:45 Uhr schrieb Radha Reddy <radha.reddy.ipp@xxxxxxxxx>:
Hello Jakob, 

Yes I am using the new version of sumo 1.13.0 on Ubuntu Linux. 

Regards
Radha


On Tue, May 24, 2022, 12:31 Jakob Erdmann <namdre.sumo@xxxxxxxxx> wrote:
You need to upgrade to version 1.13.0 to use Poisson flows.

Am Di., 24. Mai 2022 um 13:18 Uhr schrieb Radha Reddy <radha.reddy.ipp@xxxxxxxxx>:
Sorry, but I have the same error with the period

Error: Attribute 'period' in definition of flow 'f1' is not a time value.
Error: flow cannot be created
Loading of additional-files failed.
Quitting (on error).

On Tue, May 24, 2022 at 12:15 PM Radha Reddy <radha.reddy.ipp@xxxxxxxxx> wrote:
Many thanks Jakob,

Probably the SUMO website must be updated with the period instead of probability.

Regards
Radha

On Tue, May 24, 2022 at 12:13 PM Jakob Erdmann <namdre.sumo@xxxxxxxxx> wrote:
period="exp(0.01)" ....

(the period between vehicles comes from an exponential distribution)

Am Di., 24. Mai 2022 um 12:50 Uhr schrieb Radha Reddy <radha.reddy.ipp@xxxxxxxxx>:
Hello Again,

I tried to define the flow using Poisson distribution in the following way.

<flows>
            <interval begin="0" end="4000">
                <flow id="f1" probability="exp(0.01)" type="VehType" route="fromNorth"/>
            </interval>
    </flows>
<flows>
            <interval begin="0" end="4000">
                <flow id="f2" probability="exp(0.01)" type="typedist2" route="fromNorth1"/>
            </interval>
    </flows>

But I end up with an error

Error: Attribute 'probability' in definition of flow 'f1' is not of type float.
Error: flow cannot be created

Am I missing something? Where it went wrong please suggest to me.

Regards
Radha


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

Back to the top