help-glpk
[Top][All Lists]
Advanced

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

Re: [Help-glpk] need help on matrix multiplication


From: xypron
Subject: Re: [Help-glpk] need help on matrix multiplication
Date: Wed, 19 Aug 2009 14:56:41 -0700 (PDT)

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.





reply via email to

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