Table of Contents

Lab: Constraint satisfaction problems

Before the lab

Entry quiz

Q&A

  1. A solver returns a valid schedule, but two talks occupy the same room at the same time. Is the solver wrong?
  2. Three talks must use different slots. One is fixed to slot 1, and another cannot use slot 3. Does the solver need to search?
  3. One unassigned variable has two legal values, while another has five. Which should the solver assign first?
  4. One schedule avoids track conflicts, while another better respects preferred times. Which schedule is better?

Notebook

Notebook: HCAI_Lab_Constraint_Satisfaction_Problems.ipynb (Work in Google Colab or download the .ipynb file to local environment)

Work in groups of 2-4. Every group member must be able to explain the results.

Challenge

Work in groups of 2-4 on the Balanced Academic Curriculum Problem using the provided Starter Notebook.

Assign courses to academic periods while respecting prerequisites and limits on the number of courses and credits in each period. Begin by completing the missing hard constraints and use the supplied validator to check your curriculum. Then optimize the schedule by minimizing the highest period load.

Improve your model through controlled experiments with redundant constraints, search strategies, variable representations, or alternative objectives. Compare at least two meanings of a balanced curriculum and keep one successful and one unsuccessful experiment.

Do not inspect or reuse the solutions published in the CSPLib repository before completing the challenge. Your group should be ready to explain its constraints and make a small live modification.

Start the challenge during the lab and continue it as part of the self-study regarding classes. Selected groups may share their curricula and modelling choices at the next lab, and effective solutions may receive bonus points.

Learn more!