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

build_certain_constr does not accept a jumpdict #40

Closed
vgupta1 opened this issue May 23, 2014 · 2 comments
Closed

build_certain_constr does not accept a jumpdict #40

vgupta1 opened this issue May 23, 2014 · 2 comments

Comments

@vgupta1
Copy link
Collaborator

vgupta1 commented May 23, 2014

since build_certain_constr only wants vectors, this code fails:

@defVar(m, us[1:10])
#solve a problem ...

ustar = getValue(us)
build_certain_constr(con, ustar)

Easy workaround is of course replacing ustar by ustar[:], but can we long-term extend the definition please?

VG

@IainNZ
Copy link
Owner

IainNZ commented May 23, 2014

My only concern is that JuMPDict can be multi-dimensional, so I'd need to be sure it was ordered right.

@IainNZ IainNZ closed this as completed in 6320e44 May 23, 2014
@IainNZ
Copy link
Owner

IainNZ commented May 23, 2014

Fixed!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants