IainNZ / JuMPeR.jl

Julia for Mathematical Programming - extension for Robust Optimization
http://iainnz.github.io/JuMPeR.jl
Other
51 stars 23 forks source link

build_certain_constr does not accept a jumpdict #40

Closed vgupta1 closed 10 years ago

vgupta1 commented 10 years ago

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 commented 10 years ago

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

IainNZ commented 10 years ago

Fixed!