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   [EMAIL PROTECTED]
"Horse guts never lie."  -- Cherek Bear-Shoulders



_______________________________________________
Help-glpk mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-glpk

Reply via email to