help-glpk
[Top][All Lists]
Advanced

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

Re: [Help-glpk] cannot convert 1..720 to floatin-point number


From: glpk xypron
Subject: Re: [Help-glpk] cannot convert 1..720 to floatin-point number
Date: Tue, 03 Jul 2012 01:23:18 +0200

Dear Daniele,

the data section does not allow the same syntax as the model section.

Please read chapter
5.2 Set data block
of glpk-4.47/doc/gmpl.pdf

You could write:
param tmax;
set T:= {1..tmax};
data;
param tmax := 720;
end;

Best regards

Xypron


-------- Original-Nachricht --------
> Datum: Mon, 2 Jul 2012 22:50:48 +0200
> Von: Daniele Micarelli <address@hidden>
> An: address@hidden
> Betreff: [Help-glpk] cannot convert 1..720 to floatin-point number

> Hi
> in the file.MOD i declare the set T
> set T;
> I wrote in the file.dat
> set T: = 1 .. 720;
> 
> but when i try i get the error:
> 
> *cannot convert 1..720 to floatin-point number
> *
> What should I do?
> 
> If needed I can attach file.mod file.dat complete
> 
> thank you very much



reply via email to

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