Skip to content

[Bridges] remove reduce_bridged in favor of explicit methods #1937

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jul 8, 2022

Conversation

odow
Copy link
Member

@odow odow commented Jul 7, 2022

Chipping away at #1504, and the complications are largely limited to bridge_optimizer.jl. This reduce_bridged method confuses me everything I read it, because it uses too many magic anonymous function calls.

@odow odow added the Submodule: Bridges About the Bridges submodule label Jul 7, 2022
@odow odow merged commit b14a594 into master Jul 8, 2022
@odow odow deleted the od/reduce-bridged branch July 8, 2022 01:17
true,
() -> MOI.supports(b.model, attr, IndexType),
ok ->
ok && MOI.supports(
Copy link
Member

Choose a reason for hiding this comment

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

@odow Maybe that needed to be || and we can keep your translation below and just revert the if and return to reflect that

Copy link
Member Author

Choose a reason for hiding this comment

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

Hmm. Potentially. I refactored these methods because they were impenetrable, and I really didn't understand what they were trying to do.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Submodule: Bridges About the Bridges submodule
Development

Successfully merging this pull request may close these issues.

2 participants