Dear Jeffrey,
That smells too much of homework to warrant an answer. Christian From: users-boun...@gecode.org [mailto:users-boun...@gecode.org] On Behalf Of Jeffrey Sent: Thursday, January 08, 2009 4:29 PM To: gec...@gecode.org Subject: [gecode-users] How to construct constraints which count distinct values? I'm trying to assign n number of students into 3 groups. each student is teach by a certain instructor. I'd like to evenly distributed the students into the groups (assume the total no. of student is divisible by the 3 groups.) Given an array where the 1st element holds the instructor (in enum) of the 1st student and so on... How should I model the constratint to enforce that: for each group, the total no. of distinct instructors are the same. ?? Big Big thanks! _____ Yahoo!香港提供網上安全攻略,教你如何防範黑客! <http://hk.promo.yahoo.com/security/> 了解更多
_______________________________________________ Gecode users mailing list us...@gecode.org https://www.gecode.org/mailman/listinfo/gecode-users