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
This is a surprisingly subtle issue, caused by the fact that length(1:UInt(4)) returns a UInt(4) (rather than an integer, as is usually the case). I believe there's an open issue in the julia repo for this.
The following does not work.
function build()
m = Model()
n::UInt = 4
@variable(m,x[1:n])
end
Changing UInt to Int works.
The text was updated successfully, but these errors were encountered: