urgent help needed on Multidimensional Matrix formulation

Dear GAMS Friend,


I need help to form a multidimensional Matrix by selecting some values from a randomly generated data. or to form the multidimensional table by exactly generating the required value. GAMS code upto some portion is attached.

Sets j product class / J1J2 /
i dipot / I1
I2 /
s scenarios / S1S20 /


;
set ss /1
1000/;

Parameter sval(ss) “scenario values” ;

sval(ss) = normal(45, 10);
display sval;

*I want to pick 80 values from sval and want to form a multidimensional matrix D(j,i,s) as shown below

$ontext
table D(j,i,s) demand ;

S1 S2 S3 S4 S5 S6 S7 S8 S9 S10 …upto S20
J1.I1
J1.I2
J2.I1
J2.I2


$offtext


datagen.gms (470 Bytes)

Syed:
Hello,

What is your criteria for choosing those 80 values ? Randomly ?

Regards
Claudio


On Fri, Oct 11, 2013 at 11:50 AM, Syed Ali wrote:

Dear GAMS Friend,


I need help to form a multidimensional Matrix by selecting some values from a randomly generated data. or to form the multidimensional table by exactly generating the required value. GAMS code upto some portion is attached.

Sets j product class / J1J2 /
i dipot / I1
I2 /
s scenarios / S1S20 /


;
set ss /1
1000/;

Parameter sval(ss) “scenario values” ;

sval(ss) = normal(45, 10);
display sval;

*I want to pick 80 values from sval and want to form a multidimensional matrix D(j,i,s) as shown below

$ontext
table D(j,i,s) demand ;

S1 S2 S3 S4 S5 S6 S7 S8 S9 S10 …upto S20
J1.I1
J1.I2
J2.I1
J2.I2


$offtext


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.

\

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.

I may wish to select randomly.

May be its easier select initial 80 values by ord command.

On Saturday, October 12, 2013 3:23:41 AM UTC+9, Claudio Delpino wrote:

Syed:
Hello,

What is your criteria for choosing those 80 values ? Randomly ?

Regards
Claudio


On Fri, Oct 11, 2013 at 11:50 AM, Syed Ali wrote:

Dear GAMS Friend,


I need help to form a multidimensional Matrix by selecting some values from a randomly generated data. or to form the multidimensional table by exactly generating the required value. GAMS code upto some portion is attached.

Sets j product class / J1J2 /
i dipot / I1
I2 /
s scenarios / S1S20 /


;
set ss /1
1000/;

Parameter sval(ss) “scenario values” ;

sval(ss) = normal(45, 10);
display sval;

*I want to pick 80 values from sval and want to form a multidimensional matrix D(j,i,s) as shown below

$ontext
table D(j,i,s) demand ;

S1 S2 S3 S4 S5 S6 S7 S8 S9 S10 …upto S20
J1.I1
J1.I2
J2.I1
J2.I2


$offtext


To unsubscribe from this group and stop receiving emails from it, send an email to gamsworld+...@googlegroups.com.
To post to this group, send email to gams...@googlegroups.com.
Visit this group at http://groups.google.com/group/gamsworld.
For more options, visit https://groups.google.com/groups/opt_out.

\

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.