Francesco Rizzo: I need constraint [max n students building change per week], [min n students building change per week] (n day is garatite in Bulding 2) for my selected classroom example is max 3 day - min 3 day: B1 B2 B2 B1 B2 B1 not is important which day - 3 day is garantire in B2 (no one or two day or four day) max 2 day - min 2 day: B1 B2 B2 B1 B1 B1 not is important which day - 2 day is garantite in B2 Liviu Lalescu: OK, the constraint students set max building changes per week will be modified: it represents the max of the days the students set has activities in the second building. Hidden in the code is also for min, the code is commented out, because it does not work for Francesco Rizzo's file. Modification 4 March 2023: added instead constraints students set occupies building 2 max D days per week, and min. We assume students work in the same building on each day.