← Retour à l'Académie
An educator and two adult learners move illustrated workshop cards between available timetable slots while checking a room-resource diagram.
Connaissances IAFondamental21 sept. 2026· 2 min

Constraint Satisfaction and Scheduling

Constraint satisfaction models scheduling as variables, allowed values, and requirements. A solver can find feasible combinations, but people must define which conditions are mandatory and which tradeoffs are acceptable.

constraint satisfactionschedulingoptimization

Sources

Résumé complet

A school timetable must place classes into rooms and time slots without double-booking teachers. Some rooms have specialist equipment, some learners need accessible routes, and staff may have preferences about consecutive lessons. Constraint satisfaction turns such a problem into an explicit model. Instead of asking an AI system to invent a plausible-looking timetable, the institution specifies variables, possible values, and relationships that acceptable assignments must satisfy.

A variable might represent the time slot for a class. Its domain contains the slots it is allowed to occupy. A constraint may require two classes taught by the same teacher to occur at different times. Capacity and equipment requirements add further conditions. A feasible solution satisfies all hard constraints. Optimization goes further by selecting among feasible solutions according to an objective, such as reducing unwanted gaps or balancing room use.

The distinction between hard and soft conditions is consequential. A teacher preference may be negotiable; a required accessibility provision should not casually become a penalty that the solver can trade away. Objective weights encode judgments about whose inconvenience matters. The computer cannot decide those values merely by searching more efficiently. Stakeholders need to review the model before interpreting its output as a fair or workable schedule.

Consider an illustrative training day with four workshops, two rooms, and three time slots. One workshop needs a laboratory, two share an instructor, and a participant group must attend both introductory sessions. Learners first try scheduling with cards. They then write variables and constraints and compare their hand-built schedule with a solver's proposal. Adding a new requirement may make the model infeasible. Rather than silently dropping a rule, the group identifies the conflict and discusses an authorized change, such as adding a slot or changing a workshop's duration.

Practical solvers use search, propagation, and other techniques to narrow possibilities. OR-Tools documents a CP-SAT solver and scheduling examples that illustrate explicit modelling. Solver status matters: a feasible solution is not necessarily proven optimal, and a time limit may prevent either finding a solution or proving that none exists. Reports should state what the solver actually established. A polished timetable alone does not reveal that distinction.

The model is also only as complete as its inputs. It can miss walking time, informal duties, equipment setup, or a recently changed room capacity. Test a proposed schedule against real operational requirements and invite corrections from affected people. An AI assistant can help draft constraints, but those translations need inspection before a solver runs. For teaching, the most useful outcome is often a clear account of assumptions and tradeoffs rather than a complex schedule. Constraint satisfaction shows how precise requirements make computation accountable, while reminding us that a technically feasible answer still requires human judgment about the situation it is meant to serve.