use respnose optimization to tune current loop ,generate error must evaluate to real double vectors

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:

Answers (0)

Categories

Find more on Simulink Design Optimization in Help Center and File Exchange

Asked:

on 9 May 2026 at 3:38

Commented:

on 9 May 2026 at 9:56

Community Treasure Hunt

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

Start Hunting!