Uniform Distribution

34 views
Skip to first unread message

ursula challita

unread,
May 20, 2012, 12:06:28 PM5/20/12
to AIMMS - The Modeling System
Hi all,

I want to create an area in which there are users. I wnat these users
to be uniformly spaced.
I looked in the functions that are available in AIMMS and couldn't
find the one I want.
Any help how I can do this?

Thanks in advance
Ursula

Guido Diepen

unread,
May 21, 2012, 3:00:44 PM5/21/12
to ai...@googlegroups.com
Hi Ursula,

can't you make use of the uniform function to get uniform values for the X and Y coordinates for the users? You can find more information about the uniform function in the documentation.

Guido Diepen
AIMMS Specialist

ursula challita

unread,
May 21, 2012, 3:47:48 PM5/21/12
to AIMMS - The Modeling System
Hello,

Basically i tried to use this function. It gives a random
distribution. What I want is
a distribution of users that are equally spaced and not randomly
placed.
Any suggestions?

Thanks in advance,
Ursula
> > Ursula- Hide quoted text -
>
> - Show quoted text -

Guido Diepen

unread,
May 21, 2012, 3:52:28 PM5/21/12
to ai...@googlegroups.com
Hi Ursula,

you want to place them in a network object?

If you want to space them evenly, can't you just calculate the required (x,y) coordinates based on the (MaxX - MinX) / numberOfPoints and use this ratio to space the users?

Guido Diepen
AIMMS Specialist

ursula challita

unread,
May 22, 2012, 2:45:32 AM5/22/12
to AIMMS - The Modeling System
Hi Guido,

This is what I want.
Where do I place the statements. In the definition of x and y?

Thanks,
Ursula
> > > - Show quoted text -- Hide quoted text -

Guido Diepen

unread,
May 22, 2012, 3:25:19 AM5/22/12
to ai...@googlegroups.com
Hi Ursula,

you have two options for this. You can either create a procedure that will fill the two parameters (one for X and one for Y coordinate) with values based on this ratio. The other option you have is to indeed use parameters with a definition, where you use the ratio and multiply it with the ordinal value of each user.

Guido Diepen
AIMMS Specialist

ursula challita

unread,
May 27, 2012, 12:28:52 PM5/27/12
to AIMMS - The Modeling System
Thanks Guido.
Reply all
Reply to author
Forward
0 new messages