A simple time limit problem using C # and Microsoft Solver Foundation?

I am trying to figure out the following simple problem to get to know the Solver Foundation.

I have 8 hours, 1 room and 3 teachers. Each teacher should give 2 lectures lasting 1 hour each, and each teacher should not give 2 consecutive lectures. I am having trouble finding how to model something that contains time in it. How can this be modeled in a mathematical equation?

I am not looking for a block of code that does this, but rather an explanation or there may be some resources that I can read.

Thanks in advance.

+3
source share
1 answer

, 8 , 1 , , 8 "", ? , ( , ).

+2

Source: https://habr.com/ru/post/1764406/


All Articles