Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

calling getvalue on a subset of decision variables #926

Closed
CBongiova opened this issue Dec 19, 2016 · 1 comment
Closed

calling getvalue on a subset of decision variables #926

CBongiova opened this issue Dec 19, 2016 · 1 comment

Comments

@CBongiova
Copy link

CBongiova commented Dec 19, 2016

Hi,

Is it possible to use getvalue(x[a,b,c]) where a, b and c are vectors? Or can I only retrieve such values through for loops? For example, say that a=[1 2], b=[13 36 48], c=all possible nodes in the 3rd dimension -- in matlab it would be :

Thanks!

@mlubin
Copy link
Member

mlubin commented Dec 19, 2016

If x is plain Julia array with 1-based indices then you're free use Julia syntax to take slices. Slicing other kinds of arrays is not yet supported. See #851 and #643.

@mlubin mlubin closed this as completed Dec 19, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants