-
Notifications
You must be signed in to change notification settings - Fork 99
[Nonlinear] detect common subexpressions #2488
Copy link
Copy link
Closed
Labels
Project: next-gen nonlinear supportIssues relating to nonlinear supportIssues relating to nonlinear supportSubmodule: NonlinearAbout the Nonlinear submoduleAbout the Nonlinear submodule
Description
There is tooling in MOI.Nonlinear.ReverseAD to exploit common subexpressions, but we don't actively exploit this when parsing ScalarNonlinearFunction.
I wonder if we could walk the tape somehow to detect and reduce common subexpressions that are at least N nodes long.
It would help: jump-dev/JuMP.jl#3729 (comment)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Project: next-gen nonlinear supportIssues relating to nonlinear supportIssues relating to nonlinear supportSubmodule: NonlinearAbout the Nonlinear submoduleAbout the Nonlinear submodule