We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Is it possible to extend setlowerbound and setupperbound for vectors? Basically, I want to avoid to have to write something like:
setlowerbound
setupperbound
for i = 1:M JuMP.setlowerbound(x[i], lb[i]) end
when I could just write:
JuMP.setlowerbound(x, lb)
and let JuMP do the loop.
The text was updated successfully, but these errors were encountered:
You can now do JuMP.setlowerbound.(x, lb) so it's not clear why we need to manually vectorize this in JuMP. But anyway this is a dup of #740.
JuMP.setlowerbound.(x, lb)
Sorry, something went wrong.
@mlubin What version? I am using JuMP 0.15 and setlowerbound(x, lb) gives an error:
setlowerbound(x, lb)
ERROR: MethodError: no method matching setlowerbound(::Array{JuMP.Variable,1}, ::Array{Float64,1})
Julia 0.5 and later
Oh, sorry, I missed the dot. Yes, you are right.
No branches or pull requests
Is it possible to extend
setlowerbound
andsetupperbound
for vectors? Basically, I want to avoid to have to write something like:when I could just write:
and let JuMP do the loop.
The text was updated successfully, but these errors were encountered: