cancel
Showing results for
Did you mean:
cancel
Showing results for
Did you mean:

Community Tip - Help us improve the PTC Community by taking this short Community Survey! X

24-Ruby IV

## f(x):=Minimize(OF, ...)

I can create user functions thru Given-Find block:

But I cannot do it with Minimize function

Is it possible? Have you some examples?

Thanks!

1 ACCEPTED SOLUTION

Accepted Solutions
24-Ruby V
(To:ValeryOchkov)

This time its a true catanary by definition, so we don't need a proof 😉

As for your problem: I already had written it in my first answer here - the function argument (L in your case) must be also an argument of the function you wish to minimize (PE in your sheet). Even though PE does not need L and L is a dummy argument for PE.

BTW, in case you hadn't noticed. There is no need to zip or rar Mathcad sheets anymore - they can be attached directly (as it should be).

7 REPLIES 7
24-Ruby V
(To:ValeryOchkov)

@ValeryOchkov wrote:

I can create user functions thru Given-Find block:

But I cannot do it with Minimize function

Is it possible? Have you some examples?

Thanks!

Yes, it IS possible. The variable x must also be an argument of the function you try to minimize - even if x is just a dummy argument there.

BTW, in both examples above we could use the minimize function standalone as we don't provide any constraints. You could delete the keyword "given" and the function would still work.

Post your worksheet so we can see what you are trying to achieve.

Here is a very simple example:

You may also provide the guess value as function argument

24-Ruby IV
(To:Werner_E)

Thanks!

May by I do something wrong!

Sorry Werner - it is a catenary again! But some fresh problem - a round catenary

24-Ruby V
(To:ValeryOchkov)

This time its a true catanary by definition, so we don't need a proof 😉

As for your problem: I already had written it in my first answer here - the function argument (L in your case) must be also an argument of the function you wish to minimize (PE in your sheet). Even though PE does not need L and L is a dummy argument for PE.

BTW, in case you hadn't noticed. There is no need to zip or rar Mathcad sheets anymore - they can be attached directly (as it should be).

24-Ruby IV
(To:Werner_E)

Опс!

I have used yet this dummy argument in other task

24-Ruby V
(To:ValeryOchkov)

@ValeryOchkov wrote:

Опс!

I have used yet this dummy argument in other task

Yes, I thought that this feature is familiar to you anyway.

But we often forget about such tricks when we do not use them for a longer time.

24-Ruby IV
(To:Werner_E)

@Werner_E wrote:

@ValeryOchkov wrote:

Опс!

I have used yet this dummy argument in other task

Yes, I thought that this feature is familiar to you anyway.

But we often forget about such tricks when we do not use them for a longer time.

Yes!

Die Physik vs. Computer: Das Polygonseil - Die Statik, Kinematik und Dynamik Or Newton vs. LaGrangesche

21-Topaz I
(To:ValeryOchkov)

Hi,

You can also have the input parameters of your minimize function in constraint functions within the solve block.

Announcements
Top Tags