Hello,
I want to change the sequence of the dimensions of the parameter tch from tch (c,,t) to tch(t,c,). Is that possible and if how?
Thanks in advance
Hello,
I want to change the sequence of the dimensions of the parameter tch from tch (c,,t) to tch(t,c,). Is that possible and if how?
Thanks in advance
There is no magic to this. Just do it in the declaration and at every place you use tch. There is not automation help to refactor your code this way (neither in the IDE not in Studio). You need to do this manually.
-Michael
Hi Michael,
thanks for your reply. I must have been unprecise.
Due to the data structure from an Excel input (which I don’t want to change), it is not possible to change the declaration. I was wondering whether there is a leaner way than introducing a second parameter tch2(t,c,) = tch(c,,t).
No, unfortunately not. The following code does a fast copy and frees up memory used by tch (if this is not needed anymore):
Parameter tch(c,*,t), tch2(t,c,*);
$gdxin fromExcel
$load tch
option tch2<tch, clear=tch;
-Michael
Too bad. Anyway thanks for your support!