Skip to content

Conversation

@Joao-Dionisio
Copy link
Member

With the current master, we get the following behavior:

from pyscipopt import Model

m1 = Model()
x = m1.addVar()
c = m1.addCons(x <= 1, modifiable=True)

m2 = Model(sourceModel=m1)

m1.getConss()[0].isModifiable() # True
m2.getConss()[0].isModifiable() # False

This is not what I would expect.

@Joao-Dionisio Joao-Dionisio merged commit fb6db8c into master Dec 25, 2025
1 check passed
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