Modelling an Assignment Problem in Answer Set Programming

This is a tutorial on how to model, encode, and solve assignment problems. We make it concrete in the following example, hoping you can adapt to your needs.