This is similar to a number of your previous questions.
Your (math) objective function doesn’t make sense because w
and t
are not defined.
In code, you need your summation to loop over all the indices, something like for a in A, w in W, t in T
.