Skip to content

specialize does not seem to be supported in OptimizationFunction #977

@Zentrik

Description

@Zentrik

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}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions