help-glpk
[Top][All Lists]
Advanced

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

Re: [Help-glpk] matrix multiplication in GNU MathProg


From: Andrew Makhorin
Subject: Re: [Help-glpk] matrix multiplication in GNU MathProg
Date: Fri, 20 Aug 2004 00:14:25 +0400

>I am trying to do a research project with linear programming.  I am in
>need of some way to accomplish matrix multiplication.  My thought so
>far has been to try some sort of iteration but I have been having
>trouble coming up with the specific form.  Is there an easier way to do
>this?

param A{i in 1..m, j in 1..n};

param B{j in 1..n, k in 1..p};

/* C = A * B */

param C{i in 1..m, k in 1..p} := sum{j in 1..n} A[i,j] * B[j,k];






reply via email to

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