|
| From: | Heinrich Schuchardt |
| Subject: | Re: [Help-glpk] constraint variable only 0. |
| Date: | Sat, 21 Jun 2014 09:32:29 +0200 |
| User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Icedove/24.5.0 |
Hello Joko, what do you think is wrong about the solution? Best regards Heinrich On 21.06.2014 07:11, Joko Bintarto wrote:
the constraint in my code like this
...
var u {i in 1..CM, j in 1..TM} binary;
var x {i in 1..CM} integer; #1 if x[i] = j and 0 otherwise
...
minimize cost: sum{i in 1..CM, j in TM} u[i,j];
...
s.t. pret1 {i in 1..CM, j in 1..TM} : (x[i]-j) + TM*u[i,j] <= TM;
...
data;
param CM := 20;
param TM := 30;
...
help me, why u consists only 0. there are 1 in matrix x.
_______________________________________________
Help-glpk mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/help-glpk
| [Prev in Thread] | Current Thread | [Next in Thread] |