jump-dev / MathOptInterface.jl

A data structure for mathematical optimization problems
http://jump.dev/MathOptInterface.jl/
Other
387 stars 87 forks source link

[Nonlinear] add initialize timer #2432

Closed odow closed 6 months ago

odow commented 6 months ago

https://github.com/jump-dev/MathOptInterface.jl/blob/8d2bfceac902df5ccb34c376531cd1e794777d19/src/Nonlinear/types.jl#L214-L222

We currently have no way to tell what proportion of total time is spend in MOI.initialize.

Here's one example from @ccoffrin's Rosetta dataset:

image

The "Ipopt solve" for SymbolicAD hides a lot of time spent initializing the oracles.

odow commented 6 months ago

Including the initialization time in the "callbacks" section will also affect plots like this:

image