-
Notifications
You must be signed in to change notification settings - Fork 1
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
great package #1
Comments
Thanks for your interest, and taking the time for a opening a bug report. I've released today v0.1.1, I hope it fixes the issue (at least temporary). I sucessfully tested with the same configuration on Linux, MacOs, and windows (the appveyor CI is in a bad shape, but on a real machine it works). I've also improved the README. It's not a proper documentation but it is already something. For the details: I realized that there was likely a mismatch between the library and the julia code. If there are still some issues, just a few question to help debugging
I am getting close to finish a full MOI backend, also supporting the The options for the GAMS solvers are not being passed right now, it is also on top of the TODO list to support setting the options for a GAMS solver through JuMP. Out of curiosity what kind of problems/solvers would you wish to use? As you may have seen, the documentation is unfortunately rather sparse. I've had some issues with some solvers on Mac OS and windows, which do not show up in real workload or setup. Part of it is due to limitation on the CI images. But there could be issues on real machines as well. |
Hi Thanks for taking the time to respond, and update the package. The following are the details you asked about: Here is a simple illustration with the code you provide in the examples. I modified as follows: using JuMP,ReSHOP
#using Ipopt
m = Model(ReSHOP.Optimizer)
n = 30
l = -ones(n); l[1] = 0
u = ones(n)
@variable(m, l[i] <= x[i=1:n] <= u[i])
@NLexpression(m, f1, x[1])
@NLexpression(m, g, 1 + 9 * sum(x[j] ^ 2 for j = 2:n) / (n - 1))
@NLexpression(m, h, 1 - (f1 / g) ^ 2)
@NLexpression(m, f2, g * h)
#JuMP.set_start_value(x[1], 1)
#JuMP.set_start_value(x[2:n], zeros(n - 1))
@NLobjective(m, Min, f2)
@NLconstraint(m, log(exp(x[2])) <= u[2])
optimize!(m) If I use Ipopt with this code. It runs really well and return an optimal solution. So I also wanted to take advantage of CONOPT4/3 and KNITRO that I have with my GAMS installation. I get the following error:
|
are you using Julia from the terminal or through another software? I run your code on Windows 2012, both from the julia "terminal" and from Juno. |
I see. I tried in Atom-Juno and it worked. Great! I use Julia with Jupyterlab (and Atom-Hydrogen) and there it seems to fail. This has happened to me with another great package (Complementarity.jl), which I now use only in Atom-Juno and Julia-vscode. One thing, how do you choose which solver ReSHOP should direct the problem to, e.g., KNITOR vs CONOPT? I am not a programmer. But if you want me to contribute in some capacity, say documentation, updating examples, for starters, I would be happy to. |
Thanks for the details. I will have a look at it on those setups. It should be too hard to support them as well. So for choosing a solver, it is done at the m = Model(() -> ReSHOP.Optimizer(solver="knitro")) or m = Model(optimizer_with_attributes(ReSHOP.Optimizer, "solver" => "knitro")) With older version of JuMP, the last option was given by m = Model(with_optimizer(ReSHOP.Optimizer(solver="knitro"))) Replace Note that if you model becomes really large (thousands variables and constraints), or if you want to increase the speed, I would advice you to consider using the direct interface. It allows you to skip building an intermediate model representation in Julia. m = direct_model(ReSHOP.Optimizer(solver="knitro")) Thanks for your offer to help. I would definitively value a user perspective. Already reporting issues (and difficulties) is a valuable contribution. If you write examples, it's awesome. Finally, if you use |
Definitely very helpful. Thanks. I completely had missed that Julia now supports complementarity. Nice! I will watch out for the EMP package. |
Hi this is a really great package. I would like to take advantage of my GAMS solvers. What version of Julia-JuMP does this work with? I cannot get it to work in the latest (Julia 1.4.1 and JuMP v0.21.1). Thx in advance
The text was updated successfully, but these errors were encountered: