Solve an OCP for parameters field "p" instead of input command "u"

hello every one , I am glad to join your forum , I am new with Acados and I want to implement Moving Horizon Estimation (MHE) method and my model has a form of 0 = f(x_dot, x, u , p) . I want to use MHE to not only do the state estimation but also parameter estimation , and I am using Python. My question is that how can I define constraints for parameters that I already define in “model.p” and then solve OCP to get not only estimated states but also estimated parameters ??

Hi,

did you check out this example?
It shows how you can do MHE with noisy parameters:

Best,
Jonathan