Re: [tablix-list] maximizing study time between two exams???

From: Tomaž Šolc <tomaz.solc_at_tablix.org>
Date: Sun, 02 Dec 2007 20:10:04 +0000

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Max

> Is there any way to model this with the existing modules? How? If I
> need to write a new module for this...what would be a good module to
> use as a basis for modification (starting point)?

I can think of one way of doing it with existing modules:

Constrain one repetition of a lesson to Mondays and Fridays and other
repetition to Wednesdays (with "fixedtime.so"). This way there will
always be at least one day between repetitions. However this will only
work for simple cases.

> I don't fear writing a new module, I just don't want to waste time on
> something that's probably been done before. And my C is pretty rusty,
> so it will take me some time without good code to start with.

I guess the best way to start would be "events_sameday.so". It currently
adds a weight if two events are on the same day. I think it would be
pretty simple to convert that module so that it adds a weight if events
are closer than n days.

Best regards
Tomaž
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHUxEcsAlAlRhL9q8RAh4eAKCC3wTDXOnTG8RX3OlhdxosYjF2oACfWhve
W4piRPj/HxkZmczuBbvQ/6M=
=ui32
-----END PGP SIGNATURE-----
Received on Sun Dec 02 2007 - 21:10:07 CET

This archive was generated by hypermail 2.2.0 : Mon Dec 03 2007 - 06:30:01 CET