<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Setting limits of a factor based on a categorical variable in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Setting-limits-of-a-factor-based-on-a-categorical-variable/m-p/923698#M108201</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/86417"&gt;@VarianceCivet85&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Welcome in the Community !&lt;/P&gt;
&lt;P&gt;When creating your Space Filling design to generate your candidate set, you can very simply achieve your goal by using&amp;nbsp;&lt;A href="https://www.jmp.com/support/help/en/19.0/#page/jmp/restrict-factor-level-combinations.shtml" target="_self"&gt;&lt;STRONG&gt;&lt;SPAN class="Search_Result_Highlight"&gt;Disallowed&lt;/SPAN&gt;&amp;nbsp;&lt;SPAN class="Search_Result_Highlight"&gt;Combination&lt;/SPAN&gt;s&amp;nbsp;&lt;SPAN class="Search_Result_Highlight"&gt;Filter&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/A&gt;&amp;nbsp;or&amp;nbsp;&lt;A href="https://www.jmp.com/support/help/en/19.0/#page/jmp/restrict-factor-level-combinations.shtml" target="_self"&gt;&lt;STRONG&gt;&lt;SPAN class="Search_Result_Highlight"&gt;Disallowed&lt;/SPAN&gt;&amp;nbsp;&lt;SPAN class="Search_Result_Highlight"&gt;Combination&lt;/SPAN&gt;s Script.&lt;/STRONG&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Select "Use Disallowed Combinations Filter", and select factor Dtype = P and the range for factor D from 10 to 20, OR factor Dtype = A and the range for D from 10 to 20. These are the factors ranges/combination you don't want in your design based on your informations, you should have this screen :&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Victor_G_0-1768292982089.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/90859i9A5A01737291992B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Victor_G_0-1768292982089.png" alt="Victor_G_0-1768292982089.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;If you are more familiar with JMP script, you can use the option "Use Disallowed&amp;nbsp;Combinations Script" and this script:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Dtype == "P" &amp;amp; D &amp;gt;= 10 | Dtype == "A" &amp;amp; D &amp;gt;= 10&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;And you'll get the same results.&lt;/P&gt;
&lt;P&gt;Specify the number of points you want for your candidate set, generate the datatable, and you can finally check that the constraints are well enforced and respected:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Victor_G_1-1768293214219.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/90861i817847F32FFFE515/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Victor_G_1-1768293214219.png" alt="Victor_G_1-1768293214219.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would recommend reading the excellent blog &lt;LI-MESSAGE title="Demystifying Factor Constraints" uid="619898" url="https://community.jmp.com/t5/JMP-Blog/Demystifying-Factor-Constraints/m-p/619898#U619898" discussion_style_icon_css="lia-mention-container-editor-message lia-img-icon-blog-thread lia-fa-icon lia-fa-blog lia-fa-thread lia-fa"&gt;&lt;/LI-MESSAGE&gt;&amp;nbsp;by&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/610"&gt;@Jed_Campbell&lt;/a&gt;, it will explain the different ways to enforce constraints when creating designs/candidate sets.&lt;/P&gt;
&lt;P&gt;EDIT: As you want to create starting points for Bayesian Optimization, you could maybe use a D-Optimal&amp;nbsp;&lt;A href="https://www.jmp.com/support/help/en/19.0/#page/jmp/custom-designs.shtml?_gl=1*chdune*_up*MQ..*_ga*Nzg0MzkyNjQ2LjE3NjgyOTM5Mzg.*_ga_BRNVBEC1RS*czE3NjgyOTM5MzckbzEkZzAkdDE3NjgyOTM5MzckajYwJGwwJGgw#" target="_blank" rel="noopener"&gt;Custom Design&lt;/A&gt;&amp;nbsp;and enforce the constraint mentioned before, to be sure that the range for each factor can be explored with a minimum of runs. With only 6 runs and Fast Flexible Filling design, I had some situations where the ranges of D for every Dtype was not fully explored :&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Victor_G_0-1768294054353.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/90865iBC90C4FDFA9C7AD7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Victor_G_0-1768294054353.png" alt="Victor_G_0-1768294054353.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;With a Custom design approach (and only using main effects in the model), you'll need a minimum of 7 runs, but the repartition of the runs ensure you will explore the entire range for any Dtype level :&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Victor_G_1-1768294176873.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/90866iA98576F05C3CD0A3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Victor_G_1-1768294176873.png" alt="Victor_G_1-1768294176873.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this answer will solve your problem,&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 13 Jan 2026 09:00:44 GMT</pubDate>
    <dc:creator>Victor_G</dc:creator>
    <dc:date>2026-01-13T09:00:44Z</dc:date>
    <item>
      <title>Setting limits of a factor based on a categorical variable</title>
      <link>https://community.jmp.com/t5/Discussions/Setting-limits-of-a-factor-based-on-a-categorical-variable/m-p/923684#M108200</link>
      <description>&lt;P&gt;&lt;SPAN data-olk-copy-source="MessageBody"&gt;Dear JMP!&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;We have recently purchased JMP Pro, and I want to utilize Bayesian optimalization.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I would like to generate a starting set of points with a DoE with Fast Flexible Filling Design for the optimalization.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I have 2 responses and 5 factors, 1 of them is categorical (Dtype), 4 is continuous.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Based on the level of Dtype, I would like to set the limit of the factor D to different values (e.g. for P and A betweeen 5-10, for L 5-20).&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;How can I achieve this?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I have attached a screenshot from my JMP Pro.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thanks in advance for your time and answer.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jan 2026 08:19:21 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Setting-limits-of-a-factor-based-on-a-categorical-variable/m-p/923684#M108200</guid>
      <dc:creator>VarianceCivet85</dc:creator>
      <dc:date>2026-01-13T08:19:21Z</dc:date>
    </item>
    <item>
      <title>Re: Setting limits of a factor based on a categorical variable</title>
      <link>https://community.jmp.com/t5/Discussions/Setting-limits-of-a-factor-based-on-a-categorical-variable/m-p/923698#M108201</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/86417"&gt;@VarianceCivet85&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Welcome in the Community !&lt;/P&gt;
&lt;P&gt;When creating your Space Filling design to generate your candidate set, you can very simply achieve your goal by using&amp;nbsp;&lt;A href="https://www.jmp.com/support/help/en/19.0/#page/jmp/restrict-factor-level-combinations.shtml" target="_self"&gt;&lt;STRONG&gt;&lt;SPAN class="Search_Result_Highlight"&gt;Disallowed&lt;/SPAN&gt;&amp;nbsp;&lt;SPAN class="Search_Result_Highlight"&gt;Combination&lt;/SPAN&gt;s&amp;nbsp;&lt;SPAN class="Search_Result_Highlight"&gt;Filter&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/A&gt;&amp;nbsp;or&amp;nbsp;&lt;A href="https://www.jmp.com/support/help/en/19.0/#page/jmp/restrict-factor-level-combinations.shtml" target="_self"&gt;&lt;STRONG&gt;&lt;SPAN class="Search_Result_Highlight"&gt;Disallowed&lt;/SPAN&gt;&amp;nbsp;&lt;SPAN class="Search_Result_Highlight"&gt;Combination&lt;/SPAN&gt;s Script.&lt;/STRONG&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Select "Use Disallowed Combinations Filter", and select factor Dtype = P and the range for factor D from 10 to 20, OR factor Dtype = A and the range for D from 10 to 20. These are the factors ranges/combination you don't want in your design based on your informations, you should have this screen :&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Victor_G_0-1768292982089.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/90859i9A5A01737291992B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Victor_G_0-1768292982089.png" alt="Victor_G_0-1768292982089.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;If you are more familiar with JMP script, you can use the option "Use Disallowed&amp;nbsp;Combinations Script" and this script:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Dtype == "P" &amp;amp; D &amp;gt;= 10 | Dtype == "A" &amp;amp; D &amp;gt;= 10&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;And you'll get the same results.&lt;/P&gt;
&lt;P&gt;Specify the number of points you want for your candidate set, generate the datatable, and you can finally check that the constraints are well enforced and respected:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Victor_G_1-1768293214219.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/90861i817847F32FFFE515/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Victor_G_1-1768293214219.png" alt="Victor_G_1-1768293214219.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would recommend reading the excellent blog &lt;LI-MESSAGE title="Demystifying Factor Constraints" uid="619898" url="https://community.jmp.com/t5/JMP-Blog/Demystifying-Factor-Constraints/m-p/619898#U619898" discussion_style_icon_css="lia-mention-container-editor-message lia-img-icon-blog-thread lia-fa-icon lia-fa-blog lia-fa-thread lia-fa"&gt;&lt;/LI-MESSAGE&gt;&amp;nbsp;by&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/610"&gt;@Jed_Campbell&lt;/a&gt;, it will explain the different ways to enforce constraints when creating designs/candidate sets.&lt;/P&gt;
&lt;P&gt;EDIT: As you want to create starting points for Bayesian Optimization, you could maybe use a D-Optimal&amp;nbsp;&lt;A href="https://www.jmp.com/support/help/en/19.0/#page/jmp/custom-designs.shtml?_gl=1*chdune*_up*MQ..*_ga*Nzg0MzkyNjQ2LjE3NjgyOTM5Mzg.*_ga_BRNVBEC1RS*czE3NjgyOTM5MzckbzEkZzAkdDE3NjgyOTM5MzckajYwJGwwJGgw#" target="_blank" rel="noopener"&gt;Custom Design&lt;/A&gt;&amp;nbsp;and enforce the constraint mentioned before, to be sure that the range for each factor can be explored with a minimum of runs. With only 6 runs and Fast Flexible Filling design, I had some situations where the ranges of D for every Dtype was not fully explored :&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Victor_G_0-1768294054353.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/90865iBC90C4FDFA9C7AD7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Victor_G_0-1768294054353.png" alt="Victor_G_0-1768294054353.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;With a Custom design approach (and only using main effects in the model), you'll need a minimum of 7 runs, but the repartition of the runs ensure you will explore the entire range for any Dtype level :&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Victor_G_1-1768294176873.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/90866iA98576F05C3CD0A3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Victor_G_1-1768294176873.png" alt="Victor_G_1-1768294176873.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this answer will solve your problem,&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jan 2026 09:00:44 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Setting-limits-of-a-factor-based-on-a-categorical-variable/m-p/923698#M108201</guid>
      <dc:creator>Victor_G</dc:creator>
      <dc:date>2026-01-13T09:00:44Z</dc:date>
    </item>
  </channel>
</rss>

