Skip to content

Deletion of solver objects and use of model in test_cons#859

Draft
hbierlee wants to merge 1 commit intomasterfrom
feature/delete-solver-objects
Draft

Deletion of solver objects and use of model in test_cons#859
hbierlee wants to merge 1 commit intomasterfrom
feature/delete-solver-objects

Conversation

@hbierlee
Copy link
Copy Markdown
Contributor

@hbierlee hbierlee commented Feb 22, 2026

First added by @tias for #850, it has three changes:

  • use model in test_constraints, which seems good to me
  • delete solver objects after model.solve*, also seems good, but doesn't this happen automatically since s goes out of scope?
  • and added __del__ methods for three solvers; I also think that at least for PySAT, it does have its own __del__ methods, so these should also be called automatically?

@hbierlee hbierlee changed the title Reapply "deletion of solver objects (and use of model in test_cons)" Deletion of solver objects and use of model in test_cons Feb 22, 2026
@tias
Copy link
Copy Markdown
Collaborator

tias commented Feb 23, 2026

as also reported by Ignace in #808, there is still a big open issue with pysat.

More specifically with pypblib in pysat/pb.py, where it seems like pysat is not (doing or able to) free pypblib's memory...

@tias
Copy link
Copy Markdown
Collaborator

tias commented Feb 28, 2026

Reported: pysathq/pysat#219

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants