Filter löschen
Filter löschen

How can i find the optimal switching sequence using a cost function.

1 Ansicht (letzte 30 Tage)
AHAMMAD FAHAD N
AHAMMAD FAHAD N am 8 Mär. 2021
Beantwortet: Mouhamed Niasse am 9 Mär. 2021
I have a matlab function block whose inputs are switching sequences at the rate of 1 switching sequence per microsecond. The script in the function block have a cost function. All i need is to find the min cost function for 4 sampling intervals ie 4 microseconds i.e. 4 switching sequence and the output should be the optimal switching sequence out of the 4 sequences and this optimal sequence should be generated for every 4 microseconds. Can anyone help me with this. Thanks

Antworten (1)

Mouhamed Niasse
Mouhamed Niasse am 9 Mär. 2021
Hello
You reported an optimization problem if i'm right (Minimizing a cost function).
The main idea is to implement an algorithm (PSO, GA,...) that will run your program succesively for different sets of parameters (here your switching sequences) and compute their cost equivalent function until it finds the best set.
Here are some informations that will help you :
https://www.mathworks.com/help/gads/particleswarm.html
https://www.mathworks.com/matlabcentral/fileexchange/57286-video-tutorial-of-particle-swarm-optimization-pso-in-matlab

Kategorien

Mehr zu Get Started with Optimization Toolbox finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by