I have the following simple problem that I'd like to use to experiment with MS Solver Foundation:
I have a schedule where I need to have 2 workers per day for 30 days. I need to honor the following constraints:
- No people should work two days in a row.
- Unless a special exception is applied, people should only work once per week.
- Some people can only work weekends.
- Some people can only work weekdays.
I plan to use C# to populate the model, but I need help getting started with the modeling. I'm not sure how to setup the decisions, parameters and constraints to address this type of problem.
Update: While ire-and-curses has a good start, I have to imagine that there's a more declarative way to express those constraints using the framework rather than have to code them individually for every person. Anyone more familiar with MSF that can help with this construction?