You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
at Decider.Csp.Integer.DomainBinaryInteger.get_InstantiatedValue() in /_/Csp/Integer/DomainBinaryInteger.cs:line 125
at Decider.Csp.Integer.VariableInteger.get_InstantiatedValue() in /_/Csp/Integer/VariableInteger.cs:line 87
at Decider.Csp.Integer.VariableInteger.get_Value() in /_/Csp/Integer/VariableInteger.cs:line 165
at Decider.Example.TeacherTimetable.TeacherTimetable.Main() in /home/trevorde/dev/Decider/Examples/TeacherTimetable/TeacherTimetable.cs:line 97
Observed result
unhandled exception
DeciderException("Trying to access InstantiatedValue of an uninstantiated domain.")
// No teacher teaches more than 5 hours per weekdayforeach(varteacherinEnumerable.Range(1,numberOfTeachers)){foreach(vardayinWeekdays){constraints.Add(newConstraintInteger(newExpressionInteger(day.Select(x =>x==teacher).Count())<=5));}}
// No teacher teaches more than 27 hours per weekforeach(varteacherinEnumerable.Range(1,numberOfTeachers)){constraints.Add(newConstraintInteger(newExpressionInteger(Week.Select(x =>x==teacher).Count())<=27));}
Steps to reproduce
TeacherTimetable
exampleObserved result
DeciderException("Trying to access InstantiatedValue of an uninstantiated domain.")
State.Search
returnsStateOperationResult.Unsatisfiable
Expected result
The text was updated successfully, but these errors were encountered: