I am trying to solve a production scheduling problem in Ortools. The problem contains parallel machines. I have created a variable called all_task just like in standard example at https://developers.google.com/optimization/scheduling/job_shop but instead of task id I indexed the variable at machine id
all_tasks[job_id, machine_id] = task_type(start=start_var, end=end_var, interval=interval_var)
Now while creating constraint, I want the sum of interval(production duration) in all machines for a single job should be equal to the total interval required for the job.
How do I do it in ortools? In Pulp package i can create a for
loop of jobs and then again create for
iterator inside the lpsum function inside the first for loop.