help-glpk
[Top][All Lists]
Advanced

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

Re: [Help-glpk] Subscript problem , out of domain error


From: Luiz Bettoni
Subject: Re: [Help-glpk] Subscript problem , out of domain error
Date: Tue, 04 Aug 2009 13:59:20 -0300
User-agent: Thunderbird 2.0.0.22 (Windows/20090605)

The data for param Matrice was transposed.
Change the line to
    param Matrice (tr) : Z1  Z2  Z3 :=
(see mod attached).
Regards


Anteriormente, em 16:59, Alessandro Urbano havia escrito o seguinte:
What's the problem with this minimal code?
I have some trouble accessing in subscript a matrix

That's the code :

set Ale;

set Alb;

param Matrice{i in Ale,j in Alb};





solve;

display Matrice[1,1];


data ;





set Ale := Z1, Z2, Z3;

set Alb := X1, X2, X3;

param Matrice : Z1  Z2  Z3 :=
X1               8   2   8
X2               7   3   1
X3               6   5   4;


end;



Scatta, Scarica, Modifica... Condividi le tue foto con Windows Live!
set Ale;
set Alb;
param Matrice{Ale,Alb};
solve;
display Matrice;
data ;
set Ale := Z1 Z2 Z3;
set Alb := X1 X2 X3;
param Matrice (tr) : 
   Z1 Z2 Z3 :=
X1  8  2  8
X2  7  3  1
X3  6  5  4
;
end;

reply via email to

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