How to start with optimization in MATLAB Simulink?
3 views (last 30 days)
Show older comments
Are there any MATLAB Simulink optimization examples I could look at to get a general understanding of the method and the process?
For example, the extremely simplified version of the problem I am trying to solve, and maybe use & learn optimization while doing it, is: for a voltage signal, find the optimal offset value so that after the PWM Generator block, the PWM
and
are equal for the each switching period.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1644251/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1644256/image.png)
So, I know that for the PWM signal
and
, duration to be the same, the PWM Generator input signal should be half of the counter value, i.e., offset =
- signal.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1644261/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1644266/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1644271/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1644276/image.jpeg)
But how would I get to this conclusion using the optimization method and PWM signals?
A more complex version of the problem is where I have several input signals and now the sum of the PWM signals should be minimum. And I need to calculate the optimum common offset value for all the signals.
0 Comments
Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!