Skip to content

Conversation

@odow
Copy link
Member

@odow odow commented Oct 30, 2024

Closes #2570
Closes #2571

This PR is an alternative to #2571

Co-authored-by: Benoît Legat <[email protected]>
@blegat
Copy link
Member

blegat commented Oct 30, 2024

Ah, I understand better your other PR now, it's not such a nasty bug. But I wouldn't say it was expected behavior that we were permissive by letting add_constraint work even when supports_constraint was defined. I think this PR gives the expected behavior.

@odow
Copy link
Member Author

odow commented Oct 30, 2024

Yeah it's a case of "things worked when they shouldn't have." It also never came up in practice at the JuMP level, because we always copy to a file format with bridges, and they checked appropriately.

@odow odow merged commit 95e16c4 into master Oct 30, 2024
14 of 15 checks passed
@odow odow deleted the od/model-copy branch October 30, 2024 23:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

[FileFormats.CBF] bug copying unsupported variable bounds to CBF

3 participants