Dear all,

what is the best way to multiply two matrix in GAMS?

Thanks for all your answer,

Luca

Dear all,

what is the best way to multiply two matrix in GAMS?

Thanks for all your answer,

Luca

hi, the matrix dimensions must be compatible to carry out the multiplication.

Here are some examples:

```
eq(i,j).. C(i,j) =e= sum(k,A(i,k)*B(k,j));
```

or

```
eq(i,j).. C(i,j) =e= sum((k,m)$(ord(m) eq ord(k)), A(i,k)*B(m,j) );
```

Bye!