burhanms 0 Newbie Poster

Hello all,
I am using Matlab Genetic algorithm toolbox to solve my function.
It gives an error and I couldnot understand. My function is as "objfun(CW,D)" and when solving on genetic algorithm toolbox it says D is undefined which is my variable.
Could anyone tell why this toolbox gives this error?

Thanks for your helps...