@constraint(Mod, Load[t], sum(P[f, t] for fin F, for t in T))==Demand(t)
I got an error for that showing unexpected")"
Can i get more explanation about the error
@constraint(Mod, Load[t], sum(P[f, t] for fin F, for t in T))==Demand(t)
I got an error for that showing unexpected")"
Can i get more explanation about the error
for f in F for t in T
may be what you want. There’s a spurious comma there.
But realize that will inner-loop t
in an outer loop of f
:
julia> [(a,b) for a in 1:3 for b in 1:3]
9-element Array{Tuple{Int64,Int64},1}:
(1, 1)
(1, 2)
(1, 3)
(2, 1)
(2, 2)
(2, 3)
(3, 1)
(3, 2)
(3, 3)
You need a space between f and in
Thank you
it work fine now