Formulate mhe cost function using matlab interface

Hi :wave:
I would like to implement the discount cost function for MHE using acados matlab interface.

I am aware of that we can update the discount factor eta by setting scaling using command cost_set() in python interface.

Is there a similar method in matlab interface to achieve that? because I could not find the cost_set()command in matlab interface.

Thanks.
Lingbing

Hi :waving_hand:

you can set the scaling in Matlab by specifying the corresponding solver option:

The scaling can not be changed after solver creation.

Hope this is helpful,
Katrin

Thanks for the reply. It could be an option.
I have already implemented the discounted MHE scheme by setting an external cost function.