generate random variable

Hi GAMS users

How is it possible to generate random variable in GAMS?

Thanks in advance

\

Hi

use random number generator. user’s guide listed the random number generator function list.



On Fri, Feb 17, 2012 at 11:09 AM, Fatemi wrote:

Hi GAMS users

How is it possible to generate random variable in GAMS?

Thanks in advance


To post to this group, send email to gamsworld@googlegroups.com.
To unsubscribe from this group, send email to gamsworld+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/gamsworld?hl=en.



\

Babak Saleck Pay
M.Sc
Socio-Economic System Engineering
Group of Industrial Engineering
University of Tehran
Tehran,Iran


To post to this group, send email to gamsworld@googlegroups.com.
To unsubscribe from this group, send email to gamsworld+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/gamsworld?hl=en.

On Feb 17, 11:05 am, Babak Saleck Pay wrote:

HiHi Babak

thanks; i want to generate random numbers by normal distribution . I
find ‘‘normal(MEAN,STD DEV)’’. how can i generate 5 random numbers by
this function?please write the code.


thanks alot


\

I don’t know how, but you can use loops like Loop, While and etc.


On Fri, Feb 17, 2012 at 2:02 PM, Fatemi wrote:



On Feb 17, 11:05 am, Babak Saleck Pay wrote:

HiHi Babak

thanks; i want to generate random numbers by normal distribution . I
find ‘‘normal(MEAN,STD DEV)’’. how can i generate 5 random numbers by
this function?please write the code.


thanks alot

\

To post to this group, send email to gamsworld@googlegroups.com.
To unsubscribe from this group, send email to gamsworld+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/gamsworld?hl=en.



\

Babak Saleck Pay
M.Sc
Socio-Economic System Engineering
Group of Industrial Engineering
University of Tehran
Tehran,Iran


To post to this group, send email to gamsworld@googlegroups.com.
To unsubscribe from this group, send email to gamsworld+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/gamsworld?hl=en.

Hi
Use the following code
Set T /1*5/
;
Parameter A(T);

execseed = 1e8*(frac(jnow));

Loop(T,A(T)=normal(MEAN,STD DEV));


On Fri, Feb 17, 2012 at 2:09 PM, Babak Saleck Pay wrote:

I don’t know how, but you can use loops like Loop, While and etc.


On Fri, Feb 17, 2012 at 2:02 PM, Fatemi wrote:



On Feb 17, 11:05 am, Babak Saleck Pay wrote:

HiHi Babak

thanks; i want to generate random numbers by normal distribution . I
find ‘‘normal(MEAN,STD DEV)’’. how can i generate 5 random numbers by
this function?please write the code.


thanks alot

\

To post to this group, send email to gamsworld@googlegroups.com.
To unsubscribe from this group, send email to gamsworld+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/gamsworld?hl=en.



\

Babak Saleck Pay
M.Sc
Socio-Economic System Engineering
Group of Industrial Engineering
University of Tehran
Tehran,Iran


To post to this group, send email to gamsworld@googlegroups.com.
To unsubscribe from this group, send email to gamsworld+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/gamsworld?hl=en.

\

To post to this group, send email to gamsworld@googlegroups.com.
To unsubscribe from this group, send email to gamsworld+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/gamsworld?hl=en.

thanks

On Feb 17, 3:45 pm, Alireza Bahari wrote:

Hi
Use the following code
Set T /1*5/
;
Parameter A(T);

execseed = 1e8*(frac(jnow));

Loop(T,A(T)=normal(MEAN,STD DEV));

On Fri, Feb 17, 2012 at 2:09 PM, Babak Saleck Pay wrote:

I don’t know how, but you can use loops like Loop, While and etc.

On Fri, Feb 17, 2012 at 2:02 PM, Fatemi wrote:

On Feb 17, 11:05 am, Babak Saleck Pay wrote:

HiHi Babak

thanks; i want to generate random numbers by normal distribution . I
find ‘‘normal(MEAN,STD DEV)’’. how can i generate 5 random numbers by
this function?please write the code.

thanks alot


“gamsworld” group.
To post to this group, send email to gamsworld@googlegroups.com.
To unsubscribe from this group, send email to
gamsworld+unsubscribe@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/gamsworld?hl=en.


Babak Saleck Pay
M.Sc
Socio-Economic System Engineering
Group of Industrial Engineering
University of Tehran
Tehran,Iran


“gamsworld” group.
To post to this group, send email to gamsworld@googlegroups.com.
To unsubscribe from this group, send email to
gamsworld+unsubscribe@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/gamsworld?hl=en.- Hide quoted text -

  • Show quoted text -

    \