HiGHS
HiGHS copied to clipboard
Use weak references in highspy to allow garbage collection
As @mathgeekcoder notes in #2080
Instead of pointing directly to the relevant
highsobject, [HighsCallback.highs] probably should useweakref.ref(highs). There's alsoHighspyArray.highs, though only the callback has the cyclic dependency.