This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
yap-6.3/packages/CLPBN/examples/School
2012-12-20 23:19:10 +00:00
..
evidence_128.yap fove initial skeleton.w 2012-01-10 17:01:06 +00:00
parlearn.yap More whitespace cleanups 2012-12-20 23:19:10 +00:00
parschema.pfl More whitespace cleanups 2012-12-20 23:19:10 +00:00
README Cosmetic fixes 2012-12-13 17:51:43 +00:00
sample32.yap move examples upwards. 2011-05-01 22:49:34 +01:00
school_32.yap Introduce set_em_solver and use it 2012-12-17 21:19:47 +00:00
school_64.yap Introduce set_em_solver and use it 2012-12-17 21:19:47 +00:00
school_128.yap Introduce set_em_solver and use it 2012-12-17 21:19:47 +00:00
tables.yap CLP(BN) is dead. Long live the PFL 2012-12-13 17:04:14 +00:00

This is a version of the school database, based on the PRM School example.

There are the following main files:

school_32.yap:   school with 32 professors, 64 courses and 256 students
school_64.yap:   school with 64 professors, 128 courses and 1024 students
school_128.yap:  school with 128 professors, 256 courses and 4096 students

parschema.pfl:   the PFL schema

tables:          CPTs

=============================================================================

professor_ability(p0,X).

professor_popularity(p0,X).

professor_ability(p0,X), professor_popularity(p0,h).

professor_ability(p0,h), professor_popularity(p0,X).

registration_grade(r0,X).

registration_grade(r0,X), registration_course(r0,C), course_difficulty(C,h).

registration_grade(r0,X), registration_course(r0,C), course_difficulty(C,h), registration_student(r0,S), student_intelligence(S,h).

registration_grade(r0,X), registration_course(r0,C), course_difficulty(C,l), registration_student(r0,S), student_intelligence(S,h).

registration_satisfaction(r0,X).

registration_satisfaction(r0,X), registration_student(r0,S), student_intelligence(S,h).

registration_satisfaction(r0,X), registration_grade(r0,a).

registration_satisfaction(r0,X), registration_grade(r0,d).

registration_satisfaction(r0,h), registration_grade(r0,X).

course_rating(c0,X).

course_rating(c0,h), course_difficulty(c0,X).

course_difficulty(c0,X).

rank(s0,X).

rank(s0,X), student_intelligence(s0,h).