How to build a constraint with summation?

@anon37204545
I put the constraint for a in A, because of the sums that are indexed to a, Do you know if it really is done like this?
I’ve been trying to reproduce this retribution
Restricao