Skip to main content
Question

OPTIMIZE: set number of processor

  • March 31, 2026
  • 2 replies
  • 23 views

Forum|alt.badge.img

Hi everybody, 


Is there an option in ZPL to specify the number of processor kernels to use in an optimization that is launched by ‘OPTIMIZE’?

The only options I can find for ‘OPTIMIZE’ in the documentation are to specify ‘number_of_cycles’ and ‘algorithm’.

Thanks,!--endfragment-->

Kai

2 replies

MichaelH
Ansys Staff
Forum|alt.badge.img+2
  • Ansys Staff
  • April 1, 2026

Hi Kai,

By default, I believe the OPTIMIZE keyword uses all available cores, just like when you open the Optimize! tool in the GUI.  If you want to decrease the number of cores (maybe you want to reserve some compute capacity for other programs), you can use the SYSP (SETSYSTEMPROPERTY) keyword with the 901 keyword.  The following example will set the number of cores to 4 for all multi-threaded processes, including optimization:

SYSP 901, 4


Forum|alt.badge.img
  • Author
  • Monochrome
  • April 2, 2026

Hi Michael,

Thanks for the hint! That’s exactly what I need.

Kai.