Undefined function 'twofunc' for input arguments of type 'double'?

while calculation optimization problem by using genetic alorith solver in optimization tool , "it says Undefined function 'twofunc' for input arguments of type 'double'", what does it mean?

 Accepted Answer

Your code calls a function named twofunc but your code does not define twofunc.
Another possibility is that you used a variable named twofunc before you assigned a value to it.
There is no Mathworks supplied function named twofunc anywhere in any toolbox.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!