Hei community,
I was wondering if anyone had this problem before:
At the end of a loop. I wanna write one variable to an Excel sheet. In the first row of the sheet I defined the names for the set W (machines). The time values change with every loop (sliding). At the end of every loop I wanna add the new values to the end of the table. The problem is that I don’t know how I can specify, that the data should be added to the end of the sheet, but the set names should be considered from the first row. I mean something like this: rng=A97:F577 cdim=A1:F1.
If annyone has an idea, I would appreciate your help alot!
Best regards
Felix
I know it works not like this, but I thought there must be a way, that it works in this way:
Sets
I time / start*(start+480) /
W machines / AA1, AA2, AA3…/;
Variable X(I,W);
$onecho > tasks.txt
var=x rng=Astart:F(start+480) rdim=1 cdim=A1:F1
$offecho
execute_unload ‘values.gdx’;
execute ‘GDXXRW values.gdx O=values.xlsx epsout=0 @tasks.txt’;
–
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 https://groups.google.com/group/gamsworld.
For more options, visit https://groups.google.com/d/optout.