|
| 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? |
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;
| [Prev in Thread] | Current Thread | [Next in Thread] |