I need some help in developing a constraint for opening and closing of depots.
say for an example, I have operations period of 5 years and 3 depots. I want to develop a constraint in which 2 depots are opened on all the 5 years and 1 depot should be opened on first 3 years and on the 4th and 5th year, it should be closed. Ideally the result should be
Name Year 1 Year 2 Year 3 Year 4 Year 5
Depot1 Open Open Open Open Open
Depot 2 Open Open Open Open Open
Depot 3 Open Open Open Closed Closed
Right now, my constraint looks like this
Please advise me how I should modify to get the results as I mentioned. For your reference, I have attached my code.