-
Notifications
You must be signed in to change notification settings - Fork 10
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
Throw a better error when passing a vector as initial solution with a DictModel #128
Comments
This should work: using JuMP
import Nonconvex
Nonconvex.@load Ipopt
model = JuMP.Model();
@variable(model, x >= 0)
ncvx_model = DictModel(model)
optimize(ncvx_model, IpoptAlg(), Dict(:x => 0.0); options = IpoptOptions()) Note that the initial solution of a |
Closing this issue. Please open more issues if you feel the need to. |
Ah. I guess I got confused with the Zygote error since it didn't throw a method error passing the initial point as a vector. |
It would be nice to throw a better error here. |
Also I suggest adding some documentation of the existence of |
@ccoffrin and I are interested in evaluating Nonconvex.jl to test out some different solvers and AD systems. However, we're stymied by conversions from JuMP to Nonconvex:
The text was updated successfully, but these errors were encountered: