i need to impement geneticalgorithm in simulink, how can i call my function from simulink matlab function block. please help me

2 views (last 30 days)
the basic command to implement genetic algorithm in matlab is [x,fval]=ga(@fitnessfunction, no.ofvariables). To implement i need to define a fitness function. But in my simulink model i am using matlab function block which generates mex file. So how can i implement ga in simulink if using matlab function block. can somebody give me an simple example of implementing ga in simulink.

Answers (0)

Products

Community Treasure Hunt

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

Start Hunting!