Hello Alessandro,
the documentation in file doc/gmpl.doc of the source code distribution
ftp://ftp.gnu.org/gnu/glpk/glpk-4.36.pdf
describes the available operators in GMPL.
As you already remarked there is no special matrix multiplication operator.
The sum of products of elements has to be formulated explicitly.
Your examples are perfectly correct:
>> s.t. Constraint1{l in A,d in B} : sum{j in C} D[l,j] * E[j,d] <= 13;
This describes that every element of the matrix
resulting from D*E should be less or equal to 13.
>> sum {j in 1..n} A[i,j] * B[j]
This describes the multiplication of a matrix with a vector.
Best regards
Xypron
--
View this message in context:
http://www.nabble.com/need-help-on-matrix-multiplication-tp25039180p25052639.html
Sent from the Gnu - GLPK - Help mailing list archive at Nabble.com.
_______________________________________________
Help-glpk mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-glpk