Adding another )
produces this error:
ERROR: LoadError: In `@constraint(Model1, sum(Q[a, w] * x[a, t] - sum((s[a, t] .<= (RHE[w] + OHE[w]) * NE[w] - WH[w, t] for a = A))))`: Constraints must be in one of the following forms:
expr1 <= expr2
expr1 >= expr2
expr1 == expr2
lb <= expr <= ub
I guess what he needs is something like this, although it also produces an out-of-index error.
@constraint(Model1, sum(Q[a,w]*x[a,t]) - sum(s[a,t]) <= (RHE[w] + OHE[w]) * NE[w] - WH[w,t])
@RaquelSantos do you want to put a constraint like the one I put above, just for every a in A?