i am beginner in AMPL and so need your help!!
I need to generate integer parameters with a discrete uniform distribution.
Should i use build in function Uniform(m,n) and then round the values? or
there is also different solution?
I will highly appreciate your advice and help!
Greetings
Anna
--
View this message in context: http://old.nabble.com/Random-generating-of-parameters-tp30074906p30074906.html
Sent from the AMPL mailing list archive at Nabble.com.
param b{i in I, t in T} = Uniform(1,5);
But how can i generate a value in different range for each parameter b[i,t]
separately. For example:
b[1,t] = Uniform(1,5);
b[2,t] = Uniform(10,20);
Is there any solution?
thanks a lot in advance!!!!!
Anna
> --
> You received this message because you are subscribed to the Google Groups
> "AMPL Modeling Language" group.
> To post to this group, send email to am...@googlegroups.com.
> To unsubscribe from this group, send email to
> ampl+uns...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/ampl?hl=en.
>
>
>
--
View this message in context: http://old.nabble.com/Random-generating-of-parameters-tp30074906p30085818.html
> --
> You received this message because you are subscribed to the Google Groups
> "AMPL Modeling Language" group.
> To post to this group, send email to am...@googlegroups.com.
> To unsubscribe from this group, send email to
> ampl+uns...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/ampl?hl=en.
>
>
>
--
View this message in context: http://old.nabble.com/Random-generating-of-parameters-tp30074906p30092171.html
--
You received this message because you are subscribed to the Google Groups "AMPL Modeling Language" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ampl+uns...@googlegroups.com.
Visit this group at https://groups.google.com/group/ampl.
For more options, visit https://groups.google.com/d/optout.