Hi,
I do not understand this point from the documentation, and do not know if Casadi fulfills my use case. My area is control engineering, and I often meet large and complex matrices with many symbolic variables that I want to keep symbolic until the end of a loop - where I'll insert newly measured values for my symbolical variables and arrive at a purely numerical matrix. Is this even possible?
However, I'm having issues with extracting float / double elements from a MX object. Is there really no way to jump between symbolic and numerical matrices? What I would like to do is:
Create MX objects -> Perform symbolical operations on the MX objects -> Evaluate the final MX object by inserting the numerical values of the symbolics -> Extract individual scalars from the matrix
[a, 0, 0] [x_1] [a*x_1] [1]
A =[0, b, 0] x = [x_2] => A*x = [b*x_2] => a = 1 & b = 2 : x_dot = A*x = [2] => x1_dot = x_dot[0] = 1 (type: int/float)
[0, 0, a^2] [x_3] [a^2*x_3] x_1 = x_2 = x_3 = 1 : [1]