what is that problem? "Optimization running. Error running optimization. Undefined function 'power' for input arguments of type 'timeseries'"
6 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
khaled awad
el 9 de Ag. de 2016
Comentada: Walter Roberson
el 9 de Ag. de 2016
how can I solve this problem
Optimization running. Error running optimization. Undefined function 'power' for input arguments of type 'timeseries'
I am using matlab R2016a, using genetic algorithm to get the minimum values for PID controller in a switched reluctance motor. please anyone can help tell me how to solve this problem? thanks
0 comentarios
Respuesta aceptada
Walter Roberson
el 9 de Ag. de 2016
Consider for example,
a = timeseries(1:10);
a .^ 2
then that would generate that error, because you are trying to square the timeseries object.
Possibly you want to square the data in the object:
a.Data .^ 2
2 comentarios
Walter Roberson
el 9 de Ag. de 2016
What is tout? What is spo? Are those created by "To Workspace" blocks in your simulation ?
Más respuestas (1)
Ver también
Categorías
Más información sobre Problem-Based Optimization Setup en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
