Skip to main content
1-Visitor
November 15, 2014
Question

Performance when optimizing program blocks

  • November 15, 2014
  • 1 reply
  • 3648 views

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

1 reply

1-Visitor
November 16, 2014

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.

1-Visitor
November 16, 2014

My question is simple:

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

25-Diamond I
November 16, 2014

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".