GA toolbox "Not enough input arguments" error

1 view (last 30 days)
As I input rastriginsfcn with 2 variables in the genetic toolbox, it gives me the error : Error in the following problem input(s): fitnessfcn: Not enough input arguments Can anyone help figure out what I should do?!

Answers (0)

Community Treasure Hunt

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

Start Hunting!