I have here a problem with the Minimize function. MC claims that a variable is not defined although it is.
Has anybody a clue where I went wrong?
Thanks in advance
I'm using MC 15 on a 64 bit Win 7 machine.
I know that the equation sigma is lengthy 😉 in it's definition but in order not to get lost in the many nagle definitions I decided to write each and every into the function.
Solved! Go to Solution.
There is something wrong with your function itself. Mathcad is returning the following error when the vairables are passed to it.
As Mike already said its the complex angle omega compared to pi/2 which is throwing the error.
I guess the arguments of acos() in the definitions of beta and xi are wrong. There is a multiplication between ll3^2 and -ll2^2 which seems to be not intended and I guess the minus shouldn't be there, too.
Furthermore the result of the function sigma should not be a 85*1 vector but a scalar, which then could be minimized. Probably the magnitude of the vector or the last element. Otherwise minerr might be an option.