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;
_______________________________________________
Help-glpk mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-glpk

Reply via email to