Constraints between subsets of entities #858
SuperMarcomen
started this conversation in
General
Replies: 1 comment 2 replies
-
Hey there @SuperMarcomen, typically what you'd do is you'd create a
(Assuming Then you write a constraint for this fact type.
Out of curiosity... would you mind sharing which university do you attend? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I'm part of a team currently developing a web app to automatically generate timetables for schools as a university project. Since the requirements of schools can be quite specific, we thought of including a domain-specific language so that each school can personalize their solver with a simple scripting language.
I wanted to ask if it's possible to define constraints between two specific instances of the domain entities. For example, I want to tell the solver that "Teacher X wants to be free on Monday afternoon" instead of something like "All teachers want to be free on Monday afternoon". Currently there is the possibility to use
forEach
from theConstraintFactory
and then filter for one specific teacher, but is there a way of doing this more efficiently?Beta Was this translation helpful? Give feedback.
All reactions