help-glpk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-glpk] Transport Problem advanced


From: Xypron
Subject: Re: [Help-glpk] Transport Problem advanced
Date: Fri, 10 Oct 2008 20:35:52 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.17) Gecko/20080829 SeaMonkey/1.1.12

Hello Andy!

But I want it is set to 1 if sum{i in I} x[i,j] >= demand[j]


You might try something like:

# Big M, use the smallest possible value.
param M := 1e6;
# Binary
var b[j in J] binary;

s.t. gt_demand{j in J} :

sum{i in I} x[i,j] - demand[j] - M * b[j] <= 0;


Best regards

Xypron




reply via email to

[Prev in Thread] Current Thread [Next in Thread]