Skip to main content
1-Visitor
Nov 15, 2014 8:45 AM UTC
Question

Performance when optimizing program blocks

I noticed wildly changing performance after changing the settings (context sensitive setting) for internal optimization of the program. Not always in the desired direction.

Any clues about the right setting for number crunching accelerating numeric calculations)

thanks

8 replies

1-Visitor
Nov 16, 2014 9:08 AM UTC

This topic is very vague and I believe it has to be dealt with case by case. There has been many threads discussions optimisation in the community.

Please upload your worksheet for further assistance.

Translate
1-Visitor
Nov 16, 2014 9:37 AM UTC

My question is simple:

What is happening internally if one activates the checkbox "optimization" for the program block?

Translate
Werner_E
25-Diamond I
Nov 16, 2014 12:41 PM UTC

Efried wrote:

My question is simple:

What is happening internally if one activates the checkbox "optimization" for the program block?

I wouldn't have guessed that you are referring to this option when I read your initial question.

Turning on this option uses the symbolic processor to try to optimize the RHS of a definition (:=) (according to the help also the LHS of an evaluation =). If a simpler expression is found you see a red asterisks and the internal representation of that expression is replaced by the simpler form. You can then see what Mathcad replaced your expression with by chosing Show Optimization in the very same right click context menu. A small windows pops up showing what Mathcad had done to your exporession.

1.png

The result is the same as if you do symbolic evaluation yourself. Obviously there is no "simplify" used (note the blue asterisk) and so I guess that most of the time you are better off using symbolic evaluation yourself:

2.png

I wonder why you asked as that topic is covered pretty well in the help. The topic is "Symbolic Optimization" and you are pointed to it if you searcg for "optimize".

Translate