.put file error ****
.put file error ****
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.
Re: .put file error ****
Sorry, I forgot to add the message I get in the .lst file
PUT ERROR AT LINE 75937: PUT LINE OVERFLOW - LOOK FOR **** ON PUTFILE
Any idea how to avoid this error?
On Mon, Apr 18, 2016 at 4:02 PM, Federico Perea wrote:
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.
RE: .put file error ****
Hi Federico
Your line is “fullâ€. If I try to put too many characters on a line I get this
(better to loop over a certain number and then put a line break).
“YOU CAN RESET .PW UP TO 32767â€
Hope this helps
Renger
From: gamsworld@googlegroups.com [mailto:gamsworld@googlegroups.com] On Behalf Of Federico Perea
Sent: Montag, 18. April 2016 16:09
To: gamsworld@googlegroups.com
Subject: Re: .put file error ****
Sorry, I forgot to add the message I get in the .lst file
PUT ERROR AT LINE 75937: PUT LINE OVERFLOW - LOOK FOR **** ON PUTFILE
Any idea how to avoid this error?
On Mon, Apr 18, 2016 at 4:02 PM, Federico Perea wrote:
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.
--
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.
Re: .put file error ****
Dear Renger,
thank you so much! Indeed that helped
I added to my code
solution.ps = 1000;
solution.pw = 32767;
and all goes well now
Have a good day!
Fede
On Mon, Apr 18, 2016 at 4:27 PM, Renger van Nieuwkoop wrote:
Hi Federico
Your line is “fullâ€. If I try to put too many characters on a line I get this
(better to loop over a certain number and then put a line break).
“YOU CAN RESET .PW UP TO 32767â€
Hope this helps
Renger
From: gamsworld@googlegroups.com [mailto:gamsworld@googlegroups.com] On Behalf Of Federico Perea
Sent: Montag, 18. April 2016 16:09
To: gamsworld@googlegroups.com
Subject: Re: .put file error ****
Sorry, I forgot to add the message I get in the .lst file
PUT ERROR AT LINE 75937: PUT LINE OVERFLOW - LOOK FOR **** ON PUTFILE
Any idea how to avoid this error?
On Mon, Apr 18, 2016 at 4:02 PM, Federico Perea wrote:
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.
--
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.
--
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.