Signal filtering for MPC (model predictive controller) output.
10 views (last 30 days)
Show older comments
Hi,
Im using an Adaptive MPC to make a steering controller. But in order to track the path very accurately my MPC output has a lot of oscillations. In order to reduce this Ive tried reducing the constraints and tuning the MPC, but the oscillations still persist. The signal oscillation is shown in the figure below, titled noisy steering. Ive tried filtering the oscillations using moving average and median filter with some success, but I feel i can still do it better perhaps with some other filter which I'm unaware of.
Can anybody think of a suitable filter or advice of how to fix this without filtering? Personally I feel the MPC is working fine since it gives all the results that can be theoretically proved.
P.S. that this figure below was extracted from the closed loop system with the filter placed in series with MPC. Due to the filter the MPC works more and therefore to avoid the closed loop unstability and signal lag Ive had to keep the moving average window down to 4 and similarly the window for median filter is also 4.
1 Comment
ali
on 28 Aug 2020
I think you can use moving Average Filter and since you know for a moving average filter it will delay your signal by (N-1/2) samples, you calculate that and you use your (N-1/2) sample in your horizon, rather than your first point in your horizon.
Answers (0)
See Also
Categories
Find more on Linear Plant Specification in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!