[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: xypron
Subject: Re: [Help-glpk] how to make matrix multiply with mathprog
Date: Wed, 25 Feb 2009 11:22:30 -0800 (PST)

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


var x;
s.t. c : x = 2;
display c;
display x;
display c;
display x;

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]