Constraint

In reply to dave_59:

Hi Dave,

Can you expand this constraint?

constraint nonoverlapping {
foreach(reg_a[,j]) reg_a.sum() with (int’(item[j])) == 1;
}

Is it reg_a[0]+reg_a[1]…reg_a[23] ==1?

Also since its a 1D array, why do you have reg_a[,j]?