Change solver options on-the-fly

74 views
Skip to first unread message

Charles Khazoom

unread,
Nov 1, 2022, 12:18:08 AM11/1/22
to CasADi
After a casadi function was created using opti.to_function(), is it possible to change a solver option at run-time without having to regenerate a casadi function ?

Joel Andersson

unread,
Nov 3, 2022, 4:47:18 PM11/3/22
to CasADi
Joris is the opti guru, but I would think not. CasADi functions are intended to be immutable after creation.

Joel

Arnab Joardar

unread,
Mar 27, 2023, 10:11:20 PM3/27/23
to CasADi
Is there a way to interrupt a solver if certain conditions are met? Suppose I have this callback function, and I want to interrupt the solver if the function in the callback crosses a threshold. How do I get this to work?
Reply all
Reply to author
Forward
0 new messages