help-glpk
[Top][All Lists]
Advanced

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

Re: [Help-glpk] problem with parameter


From: glpk xypron
Subject: Re: [Help-glpk] problem with parameter
Date: Mon, 16 Jul 2012 22:54:09 +0200

Hello Daniele,

where is your problem in writing the data file?
A data file can have as many lines as you want.

set I:= {0..100};
set T:= {0..600};
param w{I,T};

data;
param w :=
  [  0,  0] 0.128312
  [  0,  1] 0.009597
...
  [  0,600] 0.029687
  [  1,  0] 0.553792
...
  [  1,600] 0.818264
...
  [100,600] 0.029687
...
  [100,600] 0.412226
end;

Just replace ... by the missing lines.

Best regards

Xypron

-------- Original-Nachricht --------
> Datum: Mon, 16 Jul 2012 18:42:59 +0200
> Betreff: [Help-glpk] problem with parameter

> i have to write in file.DAT one parameter in two dimensions *w[i,t]*
> when *i* the index of the activity and *t* is the index of the time
> interval
> 
> My problem is that the time interval is 0..600 and i don't know how to
> write it on file.DAT because it is too large
> 
> I know its not about GLPK but i hope it's already happened to someone
> 
> thank you very much
> 
> best



reply via email to

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