Closed gtjusila closed 4 months ago
when only the inner object of the optimizer is used
fundamentally this was one reason the issue is normally not one, we always assume the optimizer is the main structure used, SCIPData is never a stand-alone structure
The problem is once you are interacting with SCIP.jl all the SCIP calls are expecting you to pass a SCIPData object rather than an optimizer object. Two possible solutions here
This fix an issue with garbage collection when only the inner object of the optimizer is used as exemplified by the following example
The fix is to change the finalizer call to listen to garbage collection events for the SCIPdata object of the MOI Optimizer object instead of listen to garbage collection events for the whole MOI Optimizer object