Please note that this is the same error as your previous post: How to build a constraint with summation? - #12 by RaquelSantos.
You should re-read the answers to that post. In particular, you should read Julia’s documentation on arrays as explained here.