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-tp22077225p22209803.html
Sent from the Gnu - GLPK - Help mailing list archive at Nabble.com.



_______________________________________________
Help-glpk mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-glpk

Reply via email to