Hello everybody
Because when I try to compile this part of the model it returns this error to me:
KeyError: key 5 not found
using JuMP, GLPK, GLPKMathProgInterface
ModelD = Model(GLPK.Optimizer)
t = 1:4
w = 1:2
l = 1:4
T = t
W = w
L = l
NP = 18
@variable(ModelD,eh[L,T,W]>=0)
for w = w, l = l, t = t
if t < NP
j1 = t+1
h3 = @constraint(ModelD,eh[l,j1,w] <= eh[l,t,w])
println(h3)
end
end