Hi all,

Anybody knows how to remove the complex values (not real number)of the function when using NMaximize command?

e.g. I have a function F(x), F(x) may be a complex number for some x. so how to remove these values in order to use the command NMaximize[F(x),x]?

Thanks a lot,

Cheers,

xdu