Skip to main content
12-Amethyst
May 29, 2026
Question

V15 to Prime 11 conversion: 'Maximize' solve block as a function is not working

  • May 29, 2026
  • 0 replies
  • 2 views

Using Prime 11

The topic is Hertzian contact.  I was investigating the capacity of spherical contact on a flat plate using several different methods of calculating the stress state

I converted a Mathcad 15 worksheet to Prime 11.  It worked perfect in V15.  In Prime 11, one of the functions is broken.

Attached are the PDF of Mathcad 15 output and the Prime 11 worksheet that it converted.

I’m using a bunch of nested solve blocks as functions.  The functions that use the Find solve block seem OK.  But one function uses a Maximize solve block.  This isn’t working.

This function worked in Mathcad 15. sigma_eq is another function.  It’s supposed to maximizing the value of sigma_eq by searching for the value z_guess that gives the maximum.  The other inputs to the z_peak_stress function are “constants” that the function sigma_eq also needs as an input.

Conversion didn’t mention any errors about this.  It added a ‘helper’ (?) equation that’s not part of the iteration.  And the new format throws an error

 

RTFM seems the original usage from Mathcad 15 is still correct.  “When using Maximize in a solve block, you have to feed it the function, without arguments, and the value you want to iterate on to find the local maximum.”

I’ve fiddled around with trying different ways of fixing this, but I’m stumped.