Add an optimization algorithm to simulink

1 view (last 30 days)
how can I change this (fminsearch) optimizer to another optimization algorithm?
  3 Comments
Walter Roberson
Walter Roberson on 23 Apr 2022
Your diagram does not appear to include any optimization block. The block you circled looks to me as if it is a root finding block.

Sign in to comment.

Accepted Answer

Sam Chak
Sam Chak on 23 Apr 2022
Please follow the example here:
Find the m-file
edit ee_battery_opt_m
and you can copy the script and replace the fminsearch() function with your desired optimizer.

More Answers (0)

Categories

Find more on Get Started with Optimization Toolbox in Help Center and File Exchange

Products


Release

R2019b

Community Treasure Hunt

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

Start Hunting!