How to build a constraint with summation?

@Henrique_Becker
It really is showing this error that you put above. I don’t know how to resolve this restriction
Thank you for your help.

The only thing I saw that is different from the code I put here, is w , which is actually w = 5, but I believe that this will not change anything in relation to the error

using JuMP, Cbc
Model1 = Model(with_optimizer(Cbc.Optimizer)) 

#size
a = 79 #activity
t = 18 #period of time
w = 5 #work center

A = 1:79 
T = 1:18 

#parameters
Q = [8780; 11310; 8600; 12500; 925; 1918; 4026; 5076]
RHE = [150; 150; 150; 150; 150]
NE = [14; 53; 24; 58; 115]
OHE = [25; 25; 25; 25; 25]
WH = [2486; 1447; 795; 583; 232; 53; 11073; 5414] 

@variable(Model1,s[A,T], lower_bound=0)
@variable(Model1,x[A,T], lower_bound=0) 
@constraint(Model1,sum(Q[a,w]*x[a,t] for a in A)-sum(s[a,t] for a in A)<=(RHE[w]+OHE[w])*NE[w]-WH[w,t])