Thanks, it works but i have to put two conditions for findall, i have modified the code a bit as
M = 1*Matrix(I, 4, 4)
N = M
ind1 = intersect(findall((1:4) do i
l[i] == z[i]),findall(sum(M[i,j]*z[j] for j in items)+sum(N[i,j]*w[j] for j in items)+q[i]>0),)
end
But this doesnt work, i have to put two conditions actually like this, ind1 should containt the indices where z[i] == L[i] and (Mz + Nw + q)_i >0. Any idea how can i tackle it?