JuliaOpt / MathProgBase.jl

DEPRECATED: Solver-independent functions (i.e. linprog and mixintprog) and low-level interface for Mathematical Programming
Other
80 stars 38 forks source link

Free KNITRO in nlp tests #196

Closed joaquimg closed 6 years ago

joaquimg commented 6 years ago

It turns out that if one has KNITRO floating license it needs to be freed before solving a new model. In order to use nlp test we need to use MathProgBase.freemodel!(m) in many places.

I would like to modify the test/nlp.jl to include that.

Should I check if the solver is KNITRO or do we guarantee it is a no-op everywhere else?

mlubin commented 6 years ago

You can check if method_exists.

joaquimg commented 6 years ago

I will open a PR then