Optimization Problem - Cost function
3 次查看(过去 30 天)
显示 更早的评论
I am trying to design a mpc controller for trajectory control. But my cost function contains integration of sum of series. Can someone help me defining the cost function ?
where T = 60;
N = 10.
My approach is i am trying to make calculate all the 4 terms inside the cost function and integrate it at last using the integral(fun,0,T) but i get a lot of error.
3 个评论
Emmanouil Tzorakoleftherakis
2020-5-19
Have a look at, e.g. this page for reference. You can use a discrete sum to approximate the integral after you calculate the inner sums.
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Model Predictive Control Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!