Question: Optimization problem

Hi,

I get the following error message when I try to use the optimization package:

'Error, (in Optimization:-NLPSolve) abs is not differentiable at non-real arguments.'

I am confused, because the expression i try to optimize does not contain 'abs'. I try to optimize a rather complex expression, but I've played around with it quite a bit, and I never observe that it takes complex values, which it not is supposed to. I tried to take the real part of everything that goes into the expression, but it does not help. Any ideas?

 

S.

 

Please Wait...