I'm following https://developers.google.com/optimization/scheduling/employee_scheduling / https://developers.google.com/optimization/scheduling/job_shop in python to help me with a task. [] I want to add a constraint similar to AddAtMostOne, but I don't want it to be at most 1, I want it to be at most another integer.
In the context of the Job Shop problem linked above, I want to have multiple's of the same machine. For example I want 2 Machine 1's. How would I add as a constraint use up to 2 Machine 1's simultaneously? I haven't added AddExactlyOne as in that tutorial for this reason.