Constraint violation due to the loops ietration?

Many thanks for Mark and Mcg for your reply.

Please note that putting cvx_end outside the for loop doesn’t affect the results , its just gives warning "non-empty CVX problem already exists in this scope "
I think because it is solving the optimization problem I times inside each t "overwrite ", but my problem still there why it gives equally divided results where W, L are different for each t
I hope you can comment on that ?
Thanks a lot