Skip to content

Conversation

@blegat
Copy link
Member

@blegat blegat commented Aug 12, 2025

Most of the time when I debug a new bridge, it starts by not being used and I sometimes loose some time checking it. Having it explicitly checked would be helpful.

@odow
Copy link
Member

odow commented Aug 12, 2025

Most of the time when I debug a new bridge, it starts by not being used

I don't understand this. Can you point to an example?

[z, 2.0 * x * x] in Indicator{ACTIVATE_ON_ONE}(LessThan(2.0))
z in ZeroOne()
""",
no_bridge_used = true,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This one has an explicit comment that the model is unchanged. Is this PR really needed?

@blegat
Copy link
Member Author

blegat commented Aug 13, 2025

When you don't implement support properly for the bridge then the bridge isn't used and you get complicated errors saying that the constraint types of the expected model don't match. You might think that the expected model you wrote is wrong or that your bridging isn't done correctly until you realize that the bridge just isn't being used. I thought that starting with a test that says : hey you bridge isn't even being used helps you gain time in many cases.

@odow
Copy link
Member

odow commented Aug 13, 2025

This has just never happened to me 😄

@odow odow force-pushed the bl/no_bridge_used branch from 6a1fdcc to 703af5a Compare August 19, 2025 22:00
maxobjective: [x]
""",
""";
no_bridge_used = true,
Copy link
Member

@odow odow Aug 19, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is also technically a breaking change because the tests fail without this change

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's only breaking for tests so it won't really break user code. And this breakage would be quite rare

@odow
Copy link
Member

odow commented Aug 20, 2025

I think I want to close this as won't fix.

@blegat blegat closed this Aug 22, 2025
@odow odow deleted the bl/no_bridge_used branch September 21, 2025 21:39
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.

3 participants