OPTIMOPTIONS does not support code generation for function 'ga'.
Mostra commenti meno recenti
I get this error OPTIMOPTIONS does not support code generation for function 'ga' when I try to run a matlab function in simulink using genetic algorithm optimization methode;
options = optimoptions('ga', 'Display', 'iter', ...
'PopulationSize', 50, ... % You can adjust this
'MaxGenerations', 100, ... % You can adjust this
'UseParallel', true); % Use parallel computing if available
could someone help me please ?
Risposta accettata
Più risposte (1)
Walter Roberson
il 29 Ago 2024
1 voto
None of the functions in the Global Optimization Toolbox are supported for code generation.
Your only hope would be turning off Rapid Acceleration, and using coder.extrinsic from a MATLAB Function Block. This should result in Simulink calling MATLAB in an interpreted way
Categorie
Scopri di più su Genetic Algorithm in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!