Luke Marshall

Results 44 comments of Luke Marshall

I understand the benefits of immutability, but I'm still curious about the use case. I presume it's when users want to keep the expression around and try to build on...

Thanks for the example. I don't personally like that style of usage, but I can see it's a valid consideration. Changing highspy to be immutable is trivial, except for the...

> Maybe you should have `__add__` for operations like x1 + x2

Thanks for also looking into it! I've got the typical use cases to work, but it's not the most elegant implementation (see [PR](#1891)). I override `__bool__` to capture the potential...

Good spotting @few! Yes, I noticed similar edge cases when testing the new code for chained comparison. I'm most of the way through a major refactoring of the inequality logic...

Thanks @metab0t. I just tried PyOptInterface, it seems very fast! Though, running your nqueens example with N > 10 crashes for me. N

Thanks @metab0t! Yeah, it's probably just my machine. BTW: the crash only happens if I call `optimize` - it builds the model just fine. I wasn't sure if POI did...

Hi @michaelbynum, @jajhall, and @few! After rebasing my branch to include this PR **I'm seeing many random deadlocks** in my extended highspy unit tests. I've made some fixes, but wanted...

> I think I might agree. I think callbacks may be a better way to handle keyboard interrupts. I think you are also correct about python callbacks, except that the...