Shikhar1998 / Stock-Market-Prediction-using-Neural-Networks-and-Genetic-Algorithm

Matlab Module for Stock Market Prediction using Simple NN
78 stars 31 forks source link

Undefined function 'abcd' #11

Closed zeus420 closed 6 years ago

zeus420 commented 6 years ago

When running optimtool, getting the error "Undefined function 'abcd' for input arguments of type 'double'".

zeus420 commented 6 years ago

Can you write down this fitness function?

keyurrohit commented 6 years ago

Sir, please resolve this issue.

Shikhar1998 commented 6 years ago

@keyurrohit, @zeus420 sorry for the late reply. Try replacing the function name main with abcd. Also, rename the file to abcd.m from main.m

Shikhar1998 commented 6 years ago

Also, check for the optimization function you are using. It should be Multi-objective Genetic Algorithm.

zeus420 commented 6 years ago

I called the function "main" in the example and that did the trick. Thanks!