Hi
(I haven't forgotten that I need to complete consecutive.c to check properly
for repeats>2...it's just not at the top of my pile until after the end of
term.)
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="consecutive.so" weight="50" mandatory="yes">
<option name="align-odd"/>
</module>
or 'align-even' of course - but not together!
<module name="consecutive.so" weight="50" mandatory="yes">
<option name="align">even</option>
</module>
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
Nick
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