Problem with NMinimize and complex values
- To: mathgroup at smc.vnet.net
- Subject: [mg113919] Problem with NMinimize and complex values
- From: Sebastian <sebhofer at gmail.com>
- Date: Thu, 18 Nov 2010 07:04:19 -0500 (EST)
I want to minimize a function with NMinimize, which has a small imaginary part when evaluated numerically. The imaginary part is only a numeric artifact, which I can easily check by increasing the WorkingPrecision. Still NMinimize complains about the function not being real. What's the best way to deal with that? A possible solution is of course Re[] but I suspect that this decreases performance (true/ false?). TIA Sebastian