Defining a Grid Interval

When you set Allowed Values to Snap to Grid, you eliminate spending too much time progressing towards a better design with increments that you know are insignificant. This is because the value for Grid Interval determines the distance that must exist between adjacent design points when generating new design points. The optimizer uses the grid interval to produce a series of values between the lower and upper bounds, selectively picking new design points from the grid.


Note:
  • Use of this method does not affect existing design points. They are reused without adjustment, even when they do not match the grid.

  • Not all optimization methods support setting Allowed Values to Snap to Grid. For example, NLPQL does not support this setting.


The default value for Grid Interval is calculated as follows: (Upper Bound − Lower Bound)/1000. The resulting value is then rounded to the closest power of 10. For example, assume a lower bound of 3.52 and an upper bound of 4.08. After subtracting 3.52 from 4.08, the calculation (0.56/1000) yields 0.00056, which is rounded to 0.001.

You can specify a different value for Grid Interval. However, the value cannot be negative or zero. It must also be less than or equal to this value: (Upper Bound − Lower Bound).

When you edit the grid interval, the lower bound, upper bound, or starting point can become invalid. In this case, DesignXplorer highlights ​in yellow ​the value​s which need your attention​.​ ​​Edit each highlighted property to enter a value matching the grid interval. If you enter an invalid value, DesignXplorer automatically snaps it to the grid.

When Snap to Grid is set, DesignXplorer excludes optimization methods that do not support this setting from the list of methods available. However, you might have already selected such a method before you set Snap to Grid. In this case, DesignXplorer cannot update the Optimization cell. When you place the mouse cursor over the Optimization node in the Outline view, a tooltip indicates that the selected optimization method does not support continuous input parameters with Allowed Values set to Snap to Grid. It then indicates that you must either select another optimization method or change Allowed Values to some choice other than Snap to Grid.

DesignXplorer also cannot update the Optimization cell in other situations where at least one continuous input variable has Allowed Values set to Snap to Grid. Tooltips for the Optimization cell indicate how to resolve these additional problems:


Release 18.2 - © ANSYS, Inc. All rights reserved.