Simulink Matlabfunction does not support Global Optimization toolbox
Show older comments
Hi there,
I recently use Global Optimization toolbox in Simulink Matlabfunction to solve global optimization problem. But it always report a bug. Does Simulink Matlabfunction support Global Optimization toolbox ?
Best regards,
5 Comments
Steven Lord
on 20 Mar 2025
I assume when you say "report a bug" you mean that you receive an error when you try to run your Simulink model. If so please show us the full and exact text of all error messages you receive, whether they're displayed in red in the Command Window or displayed in a dialog box brought up by Simulink during execution of the model.
If I had to guess I'd say you're trying to generate C or C++ code from your model but the Global Optimization Toolbox functions you're calling don't have that extended capability. I think the only Global Optimization Toolbox function that does is optimoptions, as it's the only one a search of the alphabetical list linked to by this page for "global optimization" found.
tianyuan wang
on 20 Mar 2025
Edited: tianyuan wang
on 20 Mar 2025
tianyuan wang
on 20 Mar 2025
Edited: tianyuan wang
on 20 Mar 2025
Walter Roberson
on 20 Mar 2025
Turn Rapid Acceleration off for the model.
tianyuan wang
on 20 Mar 2025
Accepted Answer
More Answers (0)
Categories
Find more on Loops and Conditional Statements in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!