HiGHS icon indicating copy to clipboard operation
HiGHS copied to clipboard

Use weak references in highspy to allow garbage collection

Open BenChampion opened this issue 1 month ago • 0 comments

As @mathgeekcoder notes in #2080

Instead of pointing directly to the relevant highs object, [HighsCallback.highs] probably should use weakref.ref(highs). There's also HighspyArray.highs, though only the callback has the cyclic dependency.

BenChampion avatar Nov 10 '25 11:11 BenChampion