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
- :
- Maximize function - Multiple output issue.

Options

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

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

Showing results for

01-26-2012
04:01 AM

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

01-26-2012
04:01 AM

Maximize function - Multiple output issue.

I am working through a simplified Pipe Stress calculation and having an issue with the Maximize function. I have tried to use the Maximize function to calculate the allowable free span of the pipeline, without success.

I am looking at the stresses in two pipelines and therefore require two results from the function. I have set up a Given/Find solve block without any issues. Can anybody explain if that a limitation of the Minimize function?

Cheers

Mike

Solved! Go to Solution.

1 ACCEPTED SOLUTION

Accepted Solutions

01-27-2012
05:04 AM

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

01-27-2012
05:04 AM

16 REPLIES 16

01-26-2012
05:15 AM

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

01-26-2012
05:15 AM

Mike,

From the Help file: "If you are solving for n variables, the solve block must have n equations"

Alan

01-26-2012
05:21 AM

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

01-26-2012
05:21 AM

I appreciate that Alan, but still this issue is driving me mad.

I have two values for sigma.c and sigma.t and I'm trying to find the maximum length that x can be (x is used for calculating the free span), so the combined longitudinal stressed do not exceed 95% yield.

M11 worksheet included.

Mike

01-27-2012
05:04 AM

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

01-27-2012
05:04 AM

01-27-2012
05:19 AM

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

01-27-2012
05:19 AM

Cheers for taking the time Alan, but the calculated lengths should be 59.3m & 57.9m

Mike

01-27-2012
05:28 AM

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

01-27-2012
05:28 AM

Mike Armstrong wrote:

Cheers for taking the time Alan, but the calculated lengths should be 59.3m & 57.9m

Mike

Are you sure? These are the results you obtain without vectorising sigma.s. I've vectorised sigma.s. Without vectorising the sigma.s function just returns a single value. Is that what you intended?

Alan

01-27-2012
05:37 AM

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

01-27-2012
05:37 AM

Positive Alan,

Using the calculated spans in your example, the spanning stress would be above the specified yield with the other expected stresses.

Mike

01-27-2012
05:39 AM

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

01-27-2012
05:39 AM

Sorry for the mulitple replies, the website is giving me grief.

I get the following.

Mike

01-27-2012
05:44 AM

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

01-27-2012
05:44 AM

Ok, in that case, the attached should do it!

(Actually, my previous file was wrong also because I forgot to put subscripts on sigma.c and sigma.t!)

Alan

01-27-2012
05:49 AM

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

01-27-2012
05:49 AM

Cheers Alan, nice work.

You have to admit that it looks horrible though. Maybe I'll stick with the Given/Find solve block for this issue.

Cheers

Mike

01-27-2012
11:58 AM

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

01-27-2012
11:58 AM

I think you should compare Wp_sub.Z^-1 with Wp_sub/Z. They're not the same!

Alan

01-27-2012
01:12 PM

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

01-27-2012
01:12 PM

Good spot Wayne, because I had brought the Z up, the formula required the vectorize operator.

Mike

01-27-2012
01:16 PM

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

01-27-2012
01:16 PM

I have changed this to be correct Alan.

Cheers to both you and Wayne for looking.

Mike

01-26-2012
01:34 PM

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

01-26-2012
01:34 PM

Hi Mike,

Your much too bright, try dimming it down to my level.

01-26-2012
01:53 PM

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

01-26-2012
01:53 PM

Hahahahahah, stop being modest Wayne.

I am actually solving for x, I'm looking for the maximum allowable span, which I have found using a Given/Find solve block, but I can't get the Maximize solve block to work.

Mike

01-27-2012
01:00 PM

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

01-27-2012
01:00 PM

MIke,

(Thanks Alan, for how to use the solve block

My original comment was in error because I did not take the sq root to get xmax, but the point is that is easy to solve for directly. Why use a solve block?

Anyway, I get these lengths (Maybe I goofed)?

01-27-2012
01:14 PM

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

01-27-2012
01:14 PM

Wayne Reid wrote:

(Thanks Alan, for how to use the solve block

My original comment was in error because I did not take the sq root to get xmax, but the point is that is easy to solve for directly. Why use a solve block?

Anyway, I get these lengths (Maybe I goofed)?

I goofed, not you Wayne.

When I submit the calculation I will transpose the formula as you have done. I was simply playing around with the Maximize function.

Cheers

Mike