[Top][All Lists]

[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
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

View this message in context:
Sent from the Gnu - GLPK - Help mailing list archive at

reply via email to

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