use respnose optimization to tune current loop ,generate error must evaluate to real double vectors
Ältere Kommentare anzeigen
hi gusy
i met a question when i use respnose optimization to tune current loop
generate an error like this :
Requirements, including custom requirements, must evaluate to real double vectors. The following cost function fields are invalid: Cleq.
my response requirements like this:
StepResp = sdo.requirements.StepResponseEnvelope;
StepResp.RiseTime = 0.02;
StepResp.SettlingTime = 0.08;
StepResp.PercentOvershoot = 10;
StepResp.FinalValue = 0.001;
StepResp.InitialValue = 0;
how can i solve this issue ,thanks guys
here its my project part:

1 Kommentar
Walter Roberson
am 9 Mai 2026 um 9:56
Possibly you are not setting Cleq? https://www.mathworks.com/help/sldo/ug/writing-a-custom-cost-function.html
Antworten (0)
Kategorien
Mehr zu Simulink Design Optimization finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!