I need to implement the following pseudocode to JuMP/Julia:
forall{i in M, j in Ni[i]}: x[i] <= y[j];
I imagine something like:
for i in M and j in Ni[i]
@constraint(model, x[i] <= y[j])
end
How do I properly implement the 2 iterators in the for loop?