Parameter of different length
Posted: Mon Jun 18, 2018 4:21 pm
Hi,
I have the following code (not exact one)
set sh /1*50/
t /1*10/
;
Parameter
large (sh)
small(t);
I have two parameters of different length (large(sh) and small (t)). During simulation, large(sh) is assigned with some random values and i want to copy (for example) the middle 10 values from it and store it in small(t). Is it possible in GAMS if they have different dimensions?
Thanks
I have the following code (not exact one)
set sh /1*50/
t /1*10/
;
Parameter
large (sh)
small(t);
I have two parameters of different length (large(sh) and small (t)). During simulation, large(sh) is assigned with some random values and i want to copy (for example) the middle 10 values from it and store it in small(t). Is it possible in GAMS if they have different dimensions?
Thanks