You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So I was using a 3-dimensional variable, when adding constraints, I use the sum() generator and gave an explicit indexing with two indices, it automatically assumed the third index to be 1. It could be challenging in debugging the model especially when a complex variable is given.
Do you think it is necessary to have a warning message to notify users for implied index?
So I was using a 3-dimensional variable, when adding constraints, I use the sum() generator and gave an explicit indexing with two indices, it automatically assumed the third index to be 1. It could be challenging in debugging the model especially when a complex variable is given.
Do you think it is necessary to have a warning message to notify users for implied index?
julia> @variable(m, x[1:5,1:5,1:10], Bin);
julia> @constraint(m, sum(x[i,j] for i=1:3, j=1:2)>=4)
x[1,1,1] + x[1,2,1] + x[2,1,1] + x[2,2,1] + x[3,1,1] + x[3,2,1] ≥ 4
Thanks.
The text was updated successfully, but these errors were encountered: