Skip to content

Working with Multi-Dimensional Variables and the ndarray Argument to Query Values #235

Answered by pulsipher
IlyaOrson asked this question in Q&A
Discussion options

You must be logged in to vote

Thanks for the further explanation. I think this will correspond to a needed documentation improvement, since this is not how the ndarray argument is intended to be used. In short, ndarray exists to help with queries on an individual (scalar) infinite variable that contains multiple infinite parameters (as occurs in PDE-constrained optimization). It is not for querying multidimensional infinite variables. Following JuMP convention, all variables should be queried scalarwise using vectorized function calls were appropriate. This means that ndarray will not be helpful for problems with only one infinite parameter (e.g., dynamic optimization problems).

Below I provide some background and the…

Replies: 7 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by pulsipher
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
documentation Improvements or additions to documentation
2 participants
Converted from issue

This discussion was converted from issue #213 on February 27, 2022 01:49.