You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using KNITRO.Optimizer with JuMP, KNITRO licenses tend to remain checked out. Is there an elegant way with JuMP to make sure KN_free() gets called after the optimization is complete?
The text was updated successfully, but these errors were encountered:
I think the correct solution to this is to use a license manager:
using JuMP, KNITRO
manager = KNITRO.LMcontext()
model =Model(() -> KNITRO.Optimizer(; license_manager = manager))
# maybe neededfinalize(manager)
this isn't documented yet (and I don't have a license setup that requires this, so I can't easily test), so let me know if it works and I will add to the README.
When using KNITRO.Optimizer with JuMP, KNITRO licenses tend to remain checked out. Is there an elegant way with JuMP to make sure KN_free() gets called after the optimization is complete?
The text was updated successfully, but these errors were encountered: