Hello all!
I am trying to display the solution to a problem in a certain way that can be read by another software. For this, I am using the put tools, but I get something wrong. More specifically, the writing of the solution suddenly stops and I get four asterisks. Please see below the gams code, as well as the display in the .put file. After the 11664 I should get ,11666, instead I get ****. Might this be due to an excess in size/length? I am not attaching the files to this email because they exceed the maximum size allowed here.
Any help is much appreciated.
*GAMS CODE
file solution;
put solution;
scalars j1,j2,flow_current;
flow_current = 0;
loop(p,
put productstring(p);
put ‘,[’;
loop(i$(b(i,p)>0),
j1=ord(i);
put j1:0:0;
flow_current = b(i,p);
while(flow_current >= 0,
put ‘,’;
loop((j,jj)$(ord(j) = j1 and arc_used(j,jj,p) > 0),
j2 = ord(jj);
flow_current=b(jj,p);
);
put j2:0:0;
j1 = j2;
);
);
put ‘],’;
);
*.PUT FILE
a,[5,6,1460,1462,3305,3307,5319,5321,7001,7003,8608,8610,9800,9802,10958,10960,12554,12557,12563,12560,12487,12486,12413,12412,12339,12338,12265,12264,12191,12190,12117,12116,12043,12042,11966,11965,11889,11888,11812,11811,11738,11737,11664****
–
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.