Here, I have defined a complex function
Then the figure of the Abs[MDM[omega]]
is plotted and it can be seen that
there is a minimum.
When I try findminimum to find that point,
the program shows the error--complex number
Since Abs[MDM[omega]]is real, why the error