Skip to content

Conversation

@maartenflippo
Copy link
Contributor

We have to annotate Model as unsendable, which means the python script will crash if the interpreter moves the object between threads. It remains to be seen whether this happens in practice, and if so, we will need to engineer our way around it.

@maartenflippo
Copy link
Contributor Author

It seems that the failing windows pipeline is due to a memory leak. It is still unclear what exactly is going on, but when running pytest on test_constraints.py with the -s option, it outputs that a memory allocation failed.

@IgnaceBleukx
Copy link
Contributor

IgnaceBleukx commented Dec 4, 2025

Hi Maarten,

I've been working on the updated CPMpy interface to be compatible with these updates.
I'm wondering how to get the negation of a Boolean variable using the new API?
There used to be a function boolvar.negate(), but that seems to be gone now.

Kind regards,
Ignace

We have to annotate `Model` as `unsendable`, which means the python
script will crash if the interpreter moves the object between threads.
It remains to be seen whether this happens in practice, and if so, we
will need to engineer our way around it.
@maartenflippo maartenflippo force-pushed the feat/stateful-python-interface branch from da300a8 to 6e8d520 Compare December 12, 2025 16:28
@maartenflippo
Copy link
Contributor Author

Hi Maarten,

I've been working on the updated CPMpy interface to be compatible with these updates. I'm wondering how to get the negation of a Boolean variable using the new API? There used to be a function boolvar.negate(), but that seems to be gone now.

Kind regards, Ignace

Thanks for pointing this out. I added it again.

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.

3 participants