### Comments

2 comments

Hi Ana,

The term

max_(var[n,t])

only takes the maximum value of exactly one variable $$\texttt{var[n,t]}$$ because the object $$\texttt{var[n,t]}$$ is exactly one variable at position $$\texttt{(n,t)}$$. To take the maximum value over all $$\texttt{t}$$, you have to construct a list

max_(var[n,t] for t in range(time))

Best regards,
Jaromił

Many thanks for your response!!!

Finally it works!

Please sign in to leave a comment.