Optimization, Python, Mathematical Modeling, Data Science, Prescriptive Analytics.
assuming that they are given in consecutive blocks can be either 2, if the subject is scheduled for that day or 0 otherwise. This is controlled using the constraint: Lastly, we add the variable that we will use as an accumulator for the penalty of the objective function, which will try to find a