jump-dev / jump-dev/Ipopt.jl

Callbacks allocate due to type instability

Open
#518 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Julia
Stars
169
Forks
60
Avg merge
5h 14m
Merged PRs (30d)
4

Description

These calls to `nlp_data` are not type stable, so every callback allocates. Can we fix this? One option is something like #514

https://github.com/jump-dev/Ipopt.jl/blob/077843b3b77b5946011c7656c267fc272a0427f0/ext/IpoptMathOptInterfaceExt/MOI_wrapper.jl#L1033

Contributor guide

No contributing guide indexed for this repository

Research direction

Start in ext/IpoptMathOptInterfaceExt/MOI_wrapper.jl around line 1033, where the issue identifies the type-unstable nlp_data calls. Compare the proposed approach with issue #514, then verify that the callback path is type stable and no longer allocates during callbacks.

Written by the indexing model from the issue text.

Assessment

Tech stack
julia
Domain
performance
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.