Hi ,
I wonder if anyone can help me?
I'm building a system for my final year project to allocate university
students to module groups. (The room availability is already done)
I am using a record 'sol' which has features from 'S1' to the number of
students, 'Sn'.
Each field is then a FD.record with features 'xxxx' (where xxxx is the
code for each module the student does) and the fields represent the
groups available for that module.
It looks like this: (part solved)
sol('S1'('2CAL':1
'2CAP':_{1#18 92#95 164#172}
'2CHL':6
'2CHP':_{1#18 92#95 164#172}
'3CAL':10
'3CAP':_{1#18 92#95 164#172}
'3CHL':15
'3CHP':_{1#18 92#95 164#172}
'CDVL':92
'CDVP':_{1#18 92#95 164#172}
'S2'('2CHL':6
'2CHP':_{1#18 92#95 164#172}
'3CAL':10
'3CAP':_{1#18 92#95 164#172}
'3CHL':15
'3CHP':_{1#18 92#95 164#172}......etc
What I'm struggling with is how to post the constraint that the number
of students in group 93 for example must be less than 20.
The position of each module in the FD.record cannot be guaranteed.
I was trying to think along the lines of using FD.sum along with some
version of Fold but I'm quite confused at this stage.
Any help would be really appreciated.
Regards
Mark Richardson
Mark Richardson
Final year undergraduate
University of Teesside
_________________________________________________________________________________
mozart-users mailing list
[email protected]
http://www.mozart-oz.org/mailman/listinfo/mozart-users