Hi,
can t you try to write
y<=sum(i in I) x[i];
?
Then if the sum is 0 then y==0
regards
Source: Re: Reformulation of Logical Constraint to Integer Programming Constraint
Hi,
can t you try to write
y<=sum(i in I) x[i];
?
Then if the sum is 0 then y==0
regards
Source: Re: Reformulation of Logical Constraint to Integer Programming Constraint