[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Help-glpk] Re: How to make consecutive variables take a certain value?
From: |
Michael Hennebry |
Subject: |
[Help-glpk] Re: How to make consecutive variables take a certain value? |
Date: |
Mon, 3 Dec 2007 08:10:47 -0600 (CST) |
On Mon, 3 Dec 2007, ican.ozgur wrote:
> On Friday 30 November 2007 18:37:31 Michael Hennebry wrote:
> > Probably what you want are binaries based on start times.
> > You don't need to explicitly mark every period of a class.
> OK i understand it. But the question now is how to implement a constraint that
> if an hour is marked as a start time of a session it is impossible to mark
> as a start time of another session following [sessions's duration - 1 ]
> hours.
sessionA[h]+sessionB[h]<=1
sessionA[h]+sessionB[h+1]<=1
sessionA[h]+sessionB[h+2]<=1
...
sessionA[h]+sessionB[h+durationA-1]<=1
--
Mike address@hidden
"Horse guts never lie." -- Cherek Bear-Shoulders