[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
## Re: [Help-glpk] how to make matrix multiply with mathprog

**From**: |
hhb83 |

**Subject**: |
Re: [Help-glpk] how to make matrix multiply with mathprog |

**Date**: |
Fri, 27 Feb 2009 00:23:11 -0800 (PST) |

It seems that if the formula or values are not rational, all the variables
will be 0.
Thank you very much.
Haibin
xypron wrote:
>* *
>* Hello Haibin*
>* *
>* hhb83 wrote:*
>*> *
>*> ... the problem is that I could not give a value to X, even if I write*
>*> this:*
>*> s.t. position{i in I, j in J, m in K}: X[i,j,m] = 2; *
>*> the X[i,j,m] are 0, but the position[i,j,m] are all 2. I don't know how*
>*> to deal with this formulation.*
>*> *
>* *
>* x will only have value 2 after the solve statement has been executed.*
>* *
>* Please, try the example below.*
>* *
>* Best regards*
>* *
>* Xypron*
>* *
>* *
>* var x;*
>* s.t. c : x = 2;*
>* display c;*
>* display x;*
>* solve;*
>* display c;*
>* display x;*
>* end;*
>* *
>* *
--
View this message in context:
http://www.nabble.com/how-to-make-matrix-multiply-with-mathprog-tp22077225p22241371.html
Sent from the Gnu - GLPK - Help mailing list archive at Nabble.com.