Module options for consecutive.c

From: Nicholas Robinson <>
Date: Sat Jun 25 2005 - 05:56:51 CEST


(I haven't forgotten that I need to complete consecutive.c to check properly
for repeats>'s just not at the top of my pile until after the end of

I have made a mod to consecutive.c though that aligns consecutive lessons to
start either on odd or even lesson boundaries. I haven't been able to
benchmark effects on performance yet, but it doesn't appear to be dramatic
one way or the other. I does make for nice looking timetables though!

At the moment, it's hard-coded in the fitness function for testing, but I'd
thought of making it into a module parameter something like:

        <module name="" weight="50" mandatory="yes">
                <option name="align-odd"/>

or 'align-even' of course - but not together!

        <module name="" weight="50" mandatory="yes">
                <option name="align">even</option>

I'd wondered about having two fitness functions, one that does the checking
for the alignment and one that doesn't and then using the appropriate one in
the fitness_new call. That way, if you're not using the module parameter you
don't have a processing overhead.

What do you think?

Best Wishes

Received on Sat Jun 25 05:53:42 2005

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