Skip to content

Use weak references in highspy to allow garbage collectionΒ #2641

@BenChampion

Description

@BenChampion

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.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions