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 <[EMAIL PROTECTED]> 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
> [email protected]
> http://lists.gnu.org/mailman/listinfo/help-glpk
>
--
Leandro B. Barcelos
_______________________________________________
Help-glpk mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-glpk