help-glpk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [Help-glpk] What is the meaning of: warning: final NL....


From: Meketon, Marc
Subject: RE: [Help-glpk] What is the meaning of: warning: final NL....
Date: Thu, 28 Dec 2006 14:10:51 -0500

NL typically means "new line".  Perhaps you should add an empty line to
the bottom of your files.

-----Original Message-----
From: address@hidden
[mailto:address@hidden On Behalf
Of Ignacio Carrasco G
Sent: Thursday, December 28, 2006 13:31
To: address@hidden
Subject: [Help-glpk] What is the meaning of: warning: final NL....

Hi, I'm new here.
I need some help with the following problem:



#primer ejemplop
set PRD;  #conjunto de productos
set CIU;
param precio_c{PRD}; #precio competencia
param precio{j in PRD}>=precio_c[j];  #parametro de los precios
param cos_trans{PRD, CIU};
param cmin {PRD};
param cmax{CIU};
var trans{PRD,CIU} >=0;
minimize ganancia: -sum {p in PRD, ff in CIU}
(precio[p]-cos_trans[p,ff])*trans[p,ff];
s.t. cantmin {hh in PRD}: sum {j in CIU} trans[hh,j]>= cmin[hh];
s.t. cantmax {hh in CIU}: sum {j in PRD} trans[j,hh]<= cmax[hh];
end;




After use

glpsol --model ferre.mod --data ferre.dat


The following message appears.

Reading model section from ferre.mod...
ferre.mod:21: warning: final NL missing before end of file
21 lines were read
Reading data section from ferre.dat...
ferre.dat:46: warning: final NL missing before end of file
46 lines were read
Generating ganancia...
Generating cantmin...
Generating cantmax...
Model has been successfully generated
lpx_simplex: original LP has 9 rows, 16 columns, 48 non-zeros
lpx_simplex: presolved LP has 8 rows, 16 columns, 32 non-zeros
lpx_adv_basis: size of triangular part = 8
*     4:   objval = -1.722700000e+004   infeas =  0.000000000e+000 (0)
OPTIMAL
SOLUTION FOUND
Time used:   -0.0 secs
Memory used: 0.2M (175658 bytes)
"

So, my questions are:
1) What is the meaning of: "warning: final NL missing before end of
file" 2)
Why glpk didn't get the right solution?  (true sol : -184357)



Best regards and happy new year for everybody.


Ignacio Carrasco





_______________________________________________
Help-glpk mailing list
address@hidden
http://lists.gnu.org/mailman/listinfo/help-glpk
---------------------------------------------------------------------------- 
This e-mail and any attachments may be confidential or legally privileged.  If 
you received this message in error or are not the intended recipient, you 
should destroy the e-mail message and any attachments or copies, and you are 
prohibited from retaining, distributing, disclosing or using any information 
contained herein.  Please inform us of the erroneous delivery by return e-mail. 

Thank you for your cooperation.
---------------------------------------------------------------------------- 





reply via email to

[Prev in Thread] Current Thread [Next in Thread]