Hello everyone!
I am traying writ a .cvs table with my solution optimization problem. I have variables in 2-dimensions, as follows:
set T; is T = 1...10
set A; is A = 1,2,3
set B; is B = 1,2,3,4,5,6.
I have a variable v[a,t], and other variable w[b,t],
My table should be something like this:
PER var_a1 var_a2 var_a3 var_b1 var_b2 var_b3 var_b4 var_b5 .....
1 0.95 2.89 0.25 1.25 3.36 0.05 4.58 2.98
2 0.95 2.89 0.25 1.25 3.36 0.05 4.58 2.98
3 0.95 2.89 0.25 1.25 3.36 0.05 4.58 2.98
...........................................................................................................................
10 0.95 2.89 0.25 1.25 3.36 0.05 4.58 2.98
It is not necessary to write the header text in the table.
I was trying something like this:
table table_name OUT "amplcsv" "results.csv": {t in PER} -> [t],({k in A} v[k,t]),({k in B} w[k,t]);;
But the k-indexes are wroten as columns.
I hope can help me with ideas.
Regards