First off, thanks for the great work on the opti stack (and Casadi itself), it's been a pleasure to use!
I have a problem in which I give some parameters an initial value using opti.set_initial(). However, I would like to retrieve the set value somewhere else in the code, preferably without manually storing it somewhere myself. The same goes for expressions. The reason is that I'm computing other initial guesses (state trajectories) based on the initial guess of this parameter, elsewhere in the code. Is there functionality to do this?
In short, I would like to be able to do:
opti.set_initial(x, 1.0)
opti.set_initial(y, 2.0)
opti.get_initial(x+y) // Should yield 3