I refer to the School-Timetabling use case.
Each lesson now has 3 parameters: subject, teacher and studentGroup. Rooms are allocated by system.
How do I modify so that each lessons will have 4 parameters: subject, teacher, studentGroup, classRoom?
So timefold will allocate the classroom based on
lessonList.add(new Lesson(nextLessonId++, "Math", "A. Turing", "9th grade","Room A"));
instead of
lessonList.add(new Lesson(nextLessonId++, "Math", "A. Turing", "9th grade"));
Thanks
I am a newbie and interested in time table solutions. Would like to learn from scratch. Can someone help me?
This demoData was made to allocate a class in the room for you, so you don't have to provide this information to it. Please take a look at the documentation for this part along with an analysis of the Lesson class, you will be able to see that it was created with an @PlanningVariable annotation ( https://timefold.ai/docs/timefold-solver/latest/configuration/configuration#planningVariableAnnotation).
https://timefold.ai/docs/timefold-solver/latest/quickstart/overview/overview-quickstarts