Alpine.jl icon indicating copy to clipboard operation
Alpine.jl copied to clipboard

Alpine checks solver name - Why?

Open freemin7 opened this issue 4 years ago • 3 comments

Why does Alpine check for the string of solvers and throws an error if it is a string it doesn't like? What is trying to be accomplished? I would be interested in finding a better solution.

Relevant code here.

freemin7 avatar Oct 28 '21 00:10 freemin7

As I recall, this is from an older generation of JuMP when it was not possible if a given solver supports a specific type of problem. I believe this check was trying to check that the given solver supports the "NLPBlock". Presumably now, post MOI, there is a better way to accomplish this check.

ccoffrin avatar Oct 29 '21 23:10 ccoffrin

I think this is used to set solver-specific solver attributes in case the solver is Ipopt

blegat avatar Oct 31 '21 02:10 blegat

This is done to access a few solver-specific attributes of Gurobi (soln pool, etc). But this can be made better for other nlp/minlp solvers as it is mainly used for logging purposes.

harshangrjn avatar Apr 30 '22 02:04 harshangrjn

v0.4.3 addresses this issue.

harshangrjn avatar Aug 29 '22 04:08 harshangrjn