Get Help

Turn on suggestions

Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

- Community
- :
- PTC Mathcad
- :
- PTC Mathcad
- :
- Minimize Problem in MC 15

Options

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page

Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

Highlighted

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

06-23-2014
04:42 AM

06-23-2014
04:42 AM

Hello folks,

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

Raiko

P.S.

I'm using MC 15 on a 64 bit Win 7 machine.

P.P.S.

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.

1 ACCEPTED SOLUTION

Accepted Solutions

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

06-23-2014
04:59 AM

06-23-2014
04:59 AM

I stepped back through your function to the calculation of Omega and it is returning 2 values, one imaginary. I take it this is not intended and is the reason the function is failing.

4 REPLIES 4

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

06-23-2014
04:50 AM

06-23-2014
04:50 AM

Re: Minimize Problem in MC 15

There is something wrong with your function itself. Mathcad is returning the following error when the vairables are passed to it.

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

06-23-2014
04:59 AM

06-23-2014
04:59 AM

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

06-23-2014
06:49 AM

06-23-2014
06:49 AM

Re: Minimize Problem in MC 15

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.

See attachment.

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

06-23-2014
07:55 AM

06-23-2014
07:55 AM

Re: Minimize Problem in MC 15

Thank you Mike,

this was indeed the problem

Raiko