help-glpk
[Top][All Lists]
Advanced

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

Re: [Help-glpk] How to make consecutive variables take a certain value?


From: Leandro Barcelos
Subject: Re: [Help-glpk] How to make consecutive variables take a certain value?
Date: Thu, 29 Nov 2007 16:54:31 -0200

I think this could be something like that...

s.t:{d in Days, h in Hours : h <= 22}:  x[d,h] <=  (x[d,h+2] + x[d,h+1] )* 0.5



On Nov 29, 2007 3:15 PM, ican.ozgur <address@hidden> wrote:
> Hi GLPK'ers.
> I have a binary variable say, "x_dh", having day and hour indices .If x_dh is
> 1   i want it to be also 1 for the consecutive 2 hours. Do you have any idea
> on how to implement such a situation  in MathProg?
> Thanks.
>
> --
> O. Ican
>
>
> _______________________________________________
> Help-glpk mailing list
> address@hidden
> http://lists.gnu.org/mailman/listinfo/help-glpk
>



-- 
Leandro B. Barcelos




reply via email to

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