how to choose the alternate cost function in MPC command line window? and can we know which cost function MPC block is considering?

1 visualización (últimos 30 días)
hi
I'm using the MPC for reference tracking and able to see the value of cost function. but I'm unable to check the type of cost function used by the block and unable to change it to alternative cost function..can we include new cost function?
will you please suggest me.. your suggestions will be helpful to me a lot
thank you....

Respuesta aceptada

Emmanouil Tzorakoleftherakis
Emmanouil Tzorakoleftherakis el 20 de Feb. de 2023
By default, MPC controller will use the standard cost. If you want to use the alternate cost, you can see how to do it in this example.
  3 comentarios
Emmanouil Tzorakoleftherakis
Emmanouil Tzorakoleftherakis el 23 de Feb. de 2023
Mpcmove command will automatically use the alternate cost when you provide the weights as mentioned. No need to do anything additional

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Model Predictive Control Toolbox en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by