Sametimeas.c: limitation

From: Nicholas Robinson <nprREMOVE@THISbottlehall.co.uk>
Date: Wed Jun 15 2005 - 21:36:01 CEST

Hi

I'm still having a few problems getting a solution to the difficult part of
the timetable and I'm wondering if it is something to do with the way
sametimeas works - it does the same in my original implementation so it has
not been introduced by your re-write.

I want to do the following:

A double games lesson involving 4 classes and 4 teachers.

In 0.1.x I did this using a dummy class with 'conflict-with' restrictions
against the 4 individual classes and 'more-teachers' to schedule the
additional 3 teachers.

In 0.2.x I can't use the dummy class because there is no 'more-teachers' and
our earlier discussion suggested doing it using multiple events. So I now set
up four events, one for each class and use 'same-time-as'. The problem is
that I have to chain the restrictions as follows:

        <event name="Games 11" repeats="3">
                <resource type="teacher" name="NPR"/>
                <resource type="class" name="1A"/>
        </event>
        <event name="Games 12" repeats="3">
                <restriction type="same-time-as">Games 11</restriction>
                <resource type="teacher" name="SAH"/>
                <resource type="class" name="1B"/>
        </event>
        <event name="Games 13" repeats="3">
                <restriction type="same-time-as">Games 12</restriction>
                <resource type="teacher" name="JDW"/>
                <resource type="class" name="1C"/>
        </event>
        <event name="Games 14" repeats="3">
                <restriction type="same-time-as">Games 13</restriction>
                <resource type="teacher" name="IH"/>
                <resource type="class" name="1D"/>
        </event>

Would it make it more likely to converge or converge faster if the
'same-time-as' restrictions all were set to the one event? As in:

        <event name="Games 11" repeats="3">
                <resource type="teacher" name="NPR"/>
                <resource type="class" name="1A"/>
        </event>
        <event name="Games 12" repeats="3">
                <restriction type="same-time-as">Games 11</restriction>
                <resource type="teacher" name="SAH"/>
                <resource type="class" name="1B"/>
        </event>
        <event name="Games 13" repeats="3">
                <restriction type="same-time-as">Games 11</restriction>
                <resource type="teacher" name="JDW"/>
                <resource type="class" name="1C"/>
        </event>
        <event name="Games 14" repeats="3">
                <restriction type="same-time-as">Games 11</restriction>
                <resource type="teacher" name="JDW"/>
                <resource type="class" name="1D"/>
        </event>

The problem is the module doesn't support this.

Best Wishes

Nick
Received on Wed Jun 15 21:34:00 2005

This archive was generated by hypermail 2.1.8 : Tue Aug 16 2005 - 20:44:03 CEST