Closed Shuvomoy closed 1 year ago
@ccoffrin @odow Do you have any suggestions for this based on your experiences to handle Gurobi's environment issue?
As I understand this issue, it has to do with how in Alpine you conduct the check, "do I support this MIP solver?". In Juniper we don't run into this because we accept any MIP or NLP solver that follow's MOI's API for these classes of problems.
Actually, I don't remember why this check is in Alpine. Maybe now it can be removed? If not, @odow can guide us on the best approach for checking the solver's type.
Yeah this is a duplicate of #178. It's probably easiest to just accept any solver the user throws at you and hope they choose carefully
Thanks @ccoffrin and @odow. It's probably easiest to leave it to the user and reduce other solver related issues like this one. Will update accordingly.
I agree, the only place where checks are needed is when Alpine sets solvers specific attributes to Ipopt but it should accept any solver as input
@Shuvomoy This issue has been resolved in v0.4.3. Also the way Gurobi is invoked in the same environment is updated here: https://github.com/lanl-ansi/Alpine.jl/blob/9844e7deec33b1df4708f66335231e6fa0d85bb2/examples/optimizers.jl#L2
Great, thanks @harshangrjn
Consider the following code where I am trying to use the same Gurobi environment for multiple soves as found in the
Gurobi.jl
documentation here. I am trying to do this, because otherwise there are too manyAcademic license - for non-commercial use only
.The error is:
After talking with @blegat , it appears that the issue lies in
Alpine.jl
and not inGurobi.jl
. @harshangrjn, what can I do to use the same Gurobi environment for multiple solves?