
Does anyone know how I would enforce the following constraints using a mathematical formulation? Any help or feedback is appreciated.
a) If person A is given project 1, then person D must be given project 4 (but not vice versa).
b) Either person B is given project 2, or person E is given project 3, but not both.
Have you come across 0-1 variables in your operations research studies? Could you combine 0-1 variables in some way to turn these condition into formal constraints?
So for example if Person A is given project 1, you could assign a value of 1. How would you constrain this to then always equal 0?
I'll add to the answer in a bit, but can you maybe get it from there?
EDIT 1: Ok, so I'll presume you have some knowledge of how 0-1 variables work. So if you have a variable $X_{A1}$ that equals 1 if A gets project 1, how can you ensure that means that D gets project 4? Well, you need another 0-1 variable say $X_{A1D4}$ that equals 1 only if D gets 4 and A gets one and then you need to set the constraint $X_{A1}-X_{A1D4}=0$.
This will ensure your first constraint is met. Can you get the second one yourself now?