Dear Gams Friend,
How can we assign the probability of the following in an efficient way not by typing one by one. it is particularly needed if no. of set elements are higher for example 10,000.
In the example below: It has four groups ( each of s1s5 has probability 0.02 , each of s6s10 has probability 0.06, each of s11s15 has probability 0.08, each of s16s20 has probability of 0.04)
Set s /S1*S20/;
parameter p(s) probability of scenario-customized by organization
/S1 0.02
S2 0.02
S3 0.02
S4 0.02
S5 0.02
S6 0.06
S7 0.06
S8 0.06
S9 0.06
S10 0.06
S11 0.08
S12 0.08
S13 0.08
S14 0.08
S15 0.08
S16 0.04
S17 0.04
S18 0.04
S19 0.04
S20 0.04
/;
Display p;
I appreciate your help.
Syed
–
To unsubscribe from this group and stop receiving emails from it, send an email to gamsworld+unsubscribe@googlegroups.com.
To post to this group, send email to gamsworld@googlegroups.com.
Visit this group at http://groups.google.com/group/gamsworld.
For more options, visit https://groups.google.com/groups/opt_out.