Code: Select all
Constraint2.. Y(j)$(N (i,j)= 0) =e= 0;
Code: Select all
Constraint2(i,j).. N (i,j) =l= Y(j)*BigM;
I think you also have other errors in the sets specification.
Best
Code: Select all
Constraint2.. Y(j)$(N (i,j)= 0) =e= 0;
Code: Select all
Constraint2(i,j).. N (i,j) =l= Y(j)*BigM;