Max_ for multidimensional array

Answered

Comments

2 comments

  • Jaromił Najman

    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ł

    0
    Comment actions Permalink
  • Ana Guasque Ortega

    Many thanks for your response!!!

    Finally it works!

    0
    Comment actions Permalink

Please sign in to leave a comment.

Powered by Zendesk