[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Help-glpk] "0 or greater than" condition
From: |
Andrew Makhorin |
Subject: |
Re: [Help-glpk] "0 or greater than" condition |
Date: |
Sat, 22 Mar 2008 20:05:20 +0300 |
> Probably correct formulation should be the following:
>
> s.t. condition1{f in FOO, b in BAR}:
> sum{a in BAZ} x[f,b,a] >= 5 * z;
>
> s.t. condition2{f in FOO, b in BAR}:
> sum{a in BAZ} x[f,b,a] <= u[f,b,a] * z;
>
> where u[f,b,a] is an upper bound of x[f,b,a].
The second constraint should be the following:
s.t. condition2{f in FOO, b in BAR}:
sum{a in BAZ} x[f,b,a] <= u[f,b] * z;
where u[f,b] is an upper bound of sum{a in BAZ} x[f,b,a].