You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Feature] Real time plot of solver iterations #568
À propos de plots, voir à l’occasion comment intégrer certaines fonctionnalités offertes par makie (TOP). Je pense notamment au suivi dynamique des itérations du solveur opti en direct (cf. POC SED @clebreto)
Many solvers now have a method to compute the iterations step by step. This would help. Do we know if Ipopt, MadNLP, Percival or other, have this step by step feature?
saving the recorded iterations, to look at them again or compare two runs.
It relies on the same per-iteration hook as control-toolbox/CTSolvers.jl#336 (an interface of CTSolvers over the callbacks of Ipopt, MadNLP and the others) and on the map from the NLP iterate to the trajectories (CTDirect). With Makie (GLMakie for a window, WGLMakie/Bonito in a browser), the window can be fed by observables. Recording the iterates is useful on its own, without the window.
Activity
ocots commentedon Jul 1, 2025
Many solvers now have a method to compute the iterations step by step. This would help. Do we know if Ipopt, MadNLP, Percival or other, have this step by step feature?
PierreMartinon commentedon Jul 1, 2025
Many solvers can handle a callback function called at each iteration, we may try to use this to plot the current iterate ?
ocots commentedon Jul 1, 2025
There is a callback for the solvers we use so this will be ok. I was wondering if there is also this possibility.
jbcaillau commentedon Jul 2, 2025
may be to be discussed with @rveltz on how to use makie to do efficiently this kind of thing
ocots commentedon Nov 15, 2026
Written by Claude (Claude Code) at the request of ocots.
Complement, from a discussion with ocots: beyond a plot that updates, a small app that opens during the convergence:
It relies on the same per-iteration hook as control-toolbox/CTSolvers.jl#336 (an interface of CTSolvers over the callbacks of Ipopt, MadNLP and the others) and on the map from the NLP iterate to the trajectories (CTDirect). With Makie (GLMakie for a window, WGLMakie/Bonito in a browser), the window can be fed by observables. Recording the iterates is useful on its own, without the window.
🤖 Generated with Claude Code