Search found 1 match

by saraerics
4 years ago
Forum: Modeling
Topic: Problem with creating a constraint for a minimum amount of consecutive days
Replies: 1
Views: 1481

Problem with creating a constraint for a minimum amount of consecutive days

Hi, I'm trying to create a constraint over a period of 28 days for a number of agents. I have a binary variable y(i,l) i - agent l - day, indicating wether agent i works on day l or not. I want to add a constraint that ensures that the least number of days is 2. Is there anyone who could help me ple...