[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Help-glpk] Transport Problem advanced
From: |
SpaceRider |
Subject: |
Re: [Help-glpk] Transport Problem advanced |
Date: |
Tue, 14 Oct 2008 02:26:35 +0400 |
Hi!
sum{i in I} x[i,j] >= b[j] * c[j];
That's what I wanted, but I have still one problem:
The binary flag c[j] is only set to 1 if supply[i] = demand[j] :(
But I want it is set to 1 if sum{i in I} x[i,j] >= demand[j]
Did you give an idea?
Andy
Bruno Rosell i Gui wrote:
>
> Hi!
>> // s.t. supply{i in I}: sum{j in J} x[i,j] = a[i];
>> s.t. supply{i in I}: sum{j in J} x[i,j] = a[i]; // process all offer
>>
>> s.t. demand{j in J}: sum{i in I} x[i,j] >= b[j];
>>
>> Now, I need a additional comparison, but not a range from to
>> sum{i in I} x[i,j] >= b[j] OR sum{i in I} x[i,j] = 0
>>
>> How I have to write the syntax?
>> Is it still a LP-Problem?
>>
>> Can someone help me?
>
> It depends if 'b' is a parameter you could use a binary variable ( 'c' )
> and
> write:
>
> sum{i in I} x[i,j] >= b[j] * c[j];
>
> Or you can use something like descirbed in the next posts:
> http://www.mail-archive.com/address@hidden/msg01467.html )
> http://www.mail-archive.com/address@hidden/msg00816.html
> http://www.mail-archive.com/address@hidden/msg01153.html
> http://www.mail-archive.com/address@hidden/msg02021.html
>
> But if 'b' is a variable , i don't known how to solve
>
> --
>
> Cordialment Bruno Rosell i Gui
> ______________________________________________
> Help-glpk mailing list
> address@hidden
> http://lists.gnu.org/mailman/listinfo/help-glpk
>
>
--
View this message in context:
http://www.nabble.com/Transport-Problem-advanced-tp19887773p19917511.html
Sent from the Gnu - GLPK - Help mailing list archive at Nabble.com.
- [Help-glpk] Transport Problem advanced, SpaceRider, 2008/10/08
- Re: [Help-glpk] Transport Problem advanced, Bruno Rosell i Gui, 2008/10/09
- Re: [Help-glpk] Transport Problem advanced, SpaceRider, 2008/10/09
- Re: [Help-glpk] Transport Problem advanced, SpaceRider, 2008/10/10
- Re: [Help-glpk] Transport Problem advanced,
SpaceRider <=
- Re: [Help-glpk] Transport Problem advanced, SpaceRider, 2008/10/14
- Re: [Help-glpk] Transport Problem advanced, SpaceRider, 2008/10/19