Skip to content

Conversation

@blegat
Copy link
Member

@blegat blegat commented Apr 25, 2025

This was done for _FunctionStorage but not here

Copy link
Member

@odow odow left a comment

Choose a reason for hiding this comment

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

So this is okay. But more generally, we should consider:

  • Is it worth making code changes for edge cases?

This requires Hessians to be disabled AND the model to have many subexpressions AND the linearity check to take a non-trivial amount of time.

I'd be in favor of fewer special cases, even if it meant a small decrease in performance.

@odow odow merged commit cd7248f into master Apr 27, 2025
30 of 31 checks passed
@odow odow deleted the bl/subexpr_lin branch April 27, 2025 23:07
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.

2 participants