Skip to content
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

specialize does not seem to be supported in OptimizationFunction #11

Open
Zentrik opened this issue May 1, 2023 · 1 comment
Open

Comments

@Zentrik
Copy link

Zentrik commented May 1, 2023

The docs for OptimizationFunction say there is a option specialize, https://github.com/SciML/SciMLBase.jl/blob/e9caa29e90bf46d8a00dfec03d78158eb0762566/src/scimlfunctions.jl#L2085-L2087

## specialize: Controlling Compilation and Specialization

For more details on this argument, see the ODEFunction documentation.

However, the definition of OptimizationFunction and AbstractOptimizationFunction don't include this field:
https://github.com/SciML/SciMLBase.jl/blob/e9caa29e90bf46d8a00dfec03d78158eb0762566/src/SciMLBase.jl#L590

abstract type AbstractOptimizationFunction{iip} <: AbstractSciMLFunction{iip} end

https://github.com/SciML/SciMLBase.jl/blob/e9caa29e90bf46d8a00dfec03d78158eb0762566/src/scimlfunctions.jl#L2093-L2096

struct OptimizationFunction{iip, AD, F, G, H, HV, C, CJ, CH, LH, HP, CJP, CHP, LHP, S, S2,
                            O, HCV,
                            CJCV,
                            CHCV, LHCV, EX, CEX, SYS} <: AbstractOptimizationFunction{iip}
@ChrisRackauckas
Copy link
Member

Yes, it would be good to setup the specialization mechanism in the OptimizationFunction lowering process. @Vaibhavdixit02 we should chat on this.

@Vaibhavdixit02 Vaibhavdixit02 transferred this issue from SciML/Optimization.jl Feb 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants