help-glpk
[Top][All Lists]
Advanced

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

Re: [Help-glpk] CSV FILES PROBLEM


From: xypron
Subject: Re: [Help-glpk] CSV FILES PROBLEM
Date: Sat, 18 Apr 2009 04:19:46 -0700 (PDT)

Hello,

the "table IN"
statement should be in the model section and not in the data section before
the solve statement.

Best regards

Xypron


espetegos wrote:
> 
> HI 
> 
> I got a sample code from the group and try with no succes. i declared the
> table in just after the sets and then i say to read the file but it shows
> a error
> 
> colon missing where expected 
> context: set i;set j; set s dimen 2; table Ti
> 
> and this is my model
> set I;
> set J;
> set s dimen 2;
> table Ti;
> param a{i in I};
> param b{j in J};
> param d{i in I, j in J};
> param f;
> param c{i in I, j in J} := f * d[i,j] / 1000;
> var x{i in I, j in J} >= 0;
> table read ti;
> minimize cost: sum{i in I, j in J} c[i,j] * x[i,j];
> s.t. supply{i in I}: sum{j in J} x[i,j] <= a[i];
> s.t. demand{j in J}: sum{i in I} x[i,j] >= b[j];
> ---------------------------------------------------------------------
> data;
> :
> :
> table Ti IN 'csv' 'c:\pruebatab.csv':
> s <- [FROM,TO] d~DISTANCE c~COST;
> :
> end;

-- 
View this message in context: 
http://www.nabble.com/CSV-FILES-PROBLEM-tp23093087p23111780.html
Sent from the Gnu - GLPK - Help mailing list archive at Nabble.com.





reply via email to

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