<?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: DOE with two type of constraints in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/DOE-with-two-type-of-constraints/m-p/879568#M104293</link>
    <description>&lt;P&gt;Hi&amp;nbsp;Søren,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Typically, when a design involves several and different types of constraints, my go-to solution would be to use a &lt;A href="https://community.jmp.com/t5/Abstracts/Candidate-Set-Designs-Tailoring-DOE-Constraints-to-the-Problem/ec-p/756629#M478" target="_self"&gt;Candidate set approach&lt;/A&gt;, and use the Custom design platform based on this candidate set.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;One way to create it is to know which is the minimum incremental size between levels of factor (specifically for angle, are you able to set angle with a precision of 1° ? More ? Less ?), and create a table of all combinations.&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;I first created two tables for each of the continuous factor, with a sequence data initialization from 10 to 60 with a step of 1 :&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Victor_G_0-1749730272526.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/76836i664FBC709F60907B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Victor_G_0-1749730272526.png" alt="Victor_G_0-1749730272526.png" /&gt;&lt;/span&gt;&lt;/LI&gt;
&lt;LI&gt;Then I do a cartesian join of these two tables (2601 unique possible combinations in the resulting table). I filter every combination where Angle 1 + Angle 2 &amp;gt; 70 (1326 remaining rows).&lt;/LI&gt;
&lt;LI&gt;I create two tables for the categorical factors and do a Cartesian join between the two (6 unique combinations) :&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Victor_G_1-1749730552064.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/76837iED737EC3331899CF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Victor_G_1-1749730552064.png" alt="Victor_G_1-1749730552064.png" /&gt;&lt;/span&gt;&lt;/LI&gt;
&lt;LI&gt;Finally, a cartesian join between this categorical factors table and the filtered continuous one lead us closely to the final candidate set (7956 rows).&lt;/LI&gt;
&lt;LI&gt;I then apply on this final table the last remaining constraint only for "hard" Cross bar 1 to exclude rows non respecting the constraint :&amp;nbsp;&lt;SPAN&gt;For Cross Bar 1 == Hard, CB Angle 1 == 25 (4086 remaining rows).&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&lt;SPAN&gt;You can find this candidate set attached.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;You can then use this candidate set with the Custom Design platform, by &lt;A href="https://www.jmp.com/support/help/en/18.2/#page/jmp/factors.shtml" target="_self"&gt;selecting covariate factors&lt;/A&gt; runs from your table, specify the desired model and an appropriate number of runs :&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Victor_G_3-1749731437153.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/76840i4662A463E51F45CC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Victor_G_3-1749731437153.png" alt="Victor_G_3-1749731437153.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;You can then have an optimal design built only with feasible runs from your candidate set table :&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Victor_G_4-1749731488513.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/76841iB2BACFBFF0CBAC99/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Victor_G_4-1749731488513.png" alt="Victor_G_4-1749731488513.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Attached is the design table proposed with 24 runs, as in your use case.&lt;/P&gt;
&lt;P&gt;I don't expect the balance between the two levels of Cross Bar 1 to be "fixed", as the experimental space for level Soft is a lot larger than the one for level Hard (due to its constraint). Trying to force balance between the two levels with the constraint you mentioned might result in "less optimal" design and less precise terms estimations for other terms.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;EDIT: You'll obtain the same or a similar design with same performance if you're using the approach from&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/6898"&gt;@Laura_Lancaster&lt;/a&gt;&amp;nbsp;or this one with the same run size.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this solution may work for you,&lt;/P&gt;</description>
    <pubDate>Thu, 12 Jun 2025 13:00:08 GMT</pubDate>
    <dc:creator>Victor_G</dc:creator>
    <dc:date>2025-06-12T13:00:08Z</dc:date>
    <item>
      <title>DOE with two type of constraints</title>
      <link>https://community.jmp.com/t5/Discussions/DOE-with-two-type-of-constraints/m-p/879539#M104290</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I work on a DOE with two cont. factors and two categorical&lt;/P&gt;
&lt;TABLE border="1" width="100%"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="25%" height="30px"&gt;Factor&lt;/TD&gt;
&lt;TD width="25%" height="30px"&gt;Low Level&lt;/TD&gt;
&lt;TD width="25%" height="30px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="25%" height="30px"&gt;High Level&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="25%" height="30px"&gt;CB Angle 1 (continuous)&lt;/TD&gt;
&lt;TD width="25%" height="30px"&gt;10&lt;/TD&gt;
&lt;TD width="25%" height="30px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="25%" height="30px"&gt;60&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="25%" height="30px"&gt;CB Angle 2 (continuous)&lt;/TD&gt;
&lt;TD width="25%" height="30px"&gt;10&lt;/TD&gt;
&lt;TD width="25%" height="30px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="25%" height="30px"&gt;60&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="25%" height="30px"&gt;Cross Bar 1 (Categorical)&lt;/TD&gt;
&lt;TD width="25%" height="30px"&gt;Soft&lt;/TD&gt;
&lt;TD width="25%" height="30px"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD width="25%" height="30px"&gt;Hard&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="25%" height="30px"&gt;Cross Bar 2 (Categorical)&lt;/TD&gt;
&lt;TD width="25%" height="30px"&gt;Red&lt;/TD&gt;
&lt;TD width="25%" height="30px"&gt;Yellow&lt;/TD&gt;
&lt;TD width="25%" height="30px"&gt;Blue&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;Now to the constraints:&lt;/P&gt;
&lt;P&gt;CB Angle 1 and CB Angle 2 &amp;lt;= 70&lt;/P&gt;
&lt;P&gt;AND&lt;/P&gt;
&lt;P&gt;For Cross Bar 1 == Hard, CB Angle 1 == 25&lt;/P&gt;
&lt;P&gt;1) If I try linear constraint and non-allowed combinations one at a time it works (Script part 1 and 2), but if if include both constraints (script part 3) the linear constraint disappears.&lt;/P&gt;
&lt;P&gt;2) The run balance between Cross Bar 1 soft and hard is heavily skewed towards soft. How do I fix that.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you have a solution to this it would be highly appreciated, thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jun 2025 11:21:53 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/DOE-with-two-type-of-constraints/m-p/879539#M104290</guid>
      <dc:creator>Sop</dc:creator>
      <dc:date>2025-06-12T11:21:53Z</dc:date>
    </item>
    <item>
      <title>Re: DOE with two type of constraints</title>
      <link>https://community.jmp.com/t5/Discussions/DOE-with-two-type-of-constraints/m-p/879563#M104292</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you need disallowed combinations constraints and linear constraints for the same design, you can write the linear constraints as disallowed combinations.&amp;nbsp; Here is some example code that might work for your case:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;DOE(
	Custom Design,
	{Add Response( Maximize, "Y", ., ., . ),
	Add Factor( Continuous, 10, 60, "CB Angle 1", 0 ),
	Add Factor( Continuous, 10, 60, "CB Angle 2", 0 ),
	Add Factor( Categorical, {"Red", "Yellow", "Blue"}, "CB 2", 0 ),
	Add Factor( Categorical, {"Soft", "Hard"}, "CB 1", 0 ),
	Set Random Seed( 277794177 ), Number of Starts( 7637 ), Add Term( {1, 0} ),
	Add Term( {1, 1} ), Add Term( {2, 1} ), Add Term( {3, 1} ), Add Term( {4, 1} ),
	Add Term( {1, 2} ), Add Term( {2, 2} ), Add Alias Term( {1, 1}, {2, 1} ),
	Add Alias Term( {1, 1}, {3, 1} ), Add Alias Term( {1, 1}, {4, 1} ),
	Add Alias Term( {2, 1}, {3, 1} ), Add Alias Term( {2, 1}, {4, 1} ),
	Add Alias Term( {3, 1}, {4, 1} ), Set Sample Size( 12 ),
	Disallowed Combinations(
		CB 1 == "Hard" &amp;amp; CB Angle 1 &amp;lt;= 24.5 | CB 1 == "Hard" &amp;amp; CB Angle 1 &amp;gt;= 25.5 |
		CB Angle 1 + CB Angle 2 &amp;gt; 70
	), Simulate Responses( 0 ), Save X Matrix( 0 ), Make Design,
	Set Run Order( Randomize ), Make Table}
);
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Notice that I changed the "&amp;lt;=" to "&amp;gt;" to make the linear constraint a "disallowed" constraint.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope this helps.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jun 2025 12:16:57 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/DOE-with-two-type-of-constraints/m-p/879563#M104292</guid>
      <dc:creator>Laura_Lancaster</dc:creator>
      <dc:date>2025-06-12T12:16:57Z</dc:date>
    </item>
    <item>
      <title>Re: DOE with two type of constraints</title>
      <link>https://community.jmp.com/t5/Discussions/DOE-with-two-type-of-constraints/m-p/879568#M104293</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Søren,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Typically, when a design involves several and different types of constraints, my go-to solution would be to use a &lt;A href="https://community.jmp.com/t5/Abstracts/Candidate-Set-Designs-Tailoring-DOE-Constraints-to-the-Problem/ec-p/756629#M478" target="_self"&gt;Candidate set approach&lt;/A&gt;, and use the Custom design platform based on this candidate set.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;One way to create it is to know which is the minimum incremental size between levels of factor (specifically for angle, are you able to set angle with a precision of 1° ? More ? Less ?), and create a table of all combinations.&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;I first created two tables for each of the continuous factor, with a sequence data initialization from 10 to 60 with a step of 1 :&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Victor_G_0-1749730272526.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/76836i664FBC709F60907B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Victor_G_0-1749730272526.png" alt="Victor_G_0-1749730272526.png" /&gt;&lt;/span&gt;&lt;/LI&gt;
&lt;LI&gt;Then I do a cartesian join of these two tables (2601 unique possible combinations in the resulting table). I filter every combination where Angle 1 + Angle 2 &amp;gt; 70 (1326 remaining rows).&lt;/LI&gt;
&lt;LI&gt;I create two tables for the categorical factors and do a Cartesian join between the two (6 unique combinations) :&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Victor_G_1-1749730552064.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/76837iED737EC3331899CF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Victor_G_1-1749730552064.png" alt="Victor_G_1-1749730552064.png" /&gt;&lt;/span&gt;&lt;/LI&gt;
&lt;LI&gt;Finally, a cartesian join between this categorical factors table and the filtered continuous one lead us closely to the final candidate set (7956 rows).&lt;/LI&gt;
&lt;LI&gt;I then apply on this final table the last remaining constraint only for "hard" Cross bar 1 to exclude rows non respecting the constraint :&amp;nbsp;&lt;SPAN&gt;For Cross Bar 1 == Hard, CB Angle 1 == 25 (4086 remaining rows).&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&lt;SPAN&gt;You can find this candidate set attached.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;You can then use this candidate set with the Custom Design platform, by &lt;A href="https://www.jmp.com/support/help/en/18.2/#page/jmp/factors.shtml" target="_self"&gt;selecting covariate factors&lt;/A&gt; runs from your table, specify the desired model and an appropriate number of runs :&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Victor_G_3-1749731437153.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/76840i4662A463E51F45CC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Victor_G_3-1749731437153.png" alt="Victor_G_3-1749731437153.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;You can then have an optimal design built only with feasible runs from your candidate set table :&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Victor_G_4-1749731488513.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/76841iB2BACFBFF0CBAC99/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Victor_G_4-1749731488513.png" alt="Victor_G_4-1749731488513.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Attached is the design table proposed with 24 runs, as in your use case.&lt;/P&gt;
&lt;P&gt;I don't expect the balance between the two levels of Cross Bar 1 to be "fixed", as the experimental space for level Soft is a lot larger than the one for level Hard (due to its constraint). Trying to force balance between the two levels with the constraint you mentioned might result in "less optimal" design and less precise terms estimations for other terms.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;EDIT: You'll obtain the same or a similar design with same performance if you're using the approach from&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/6898"&gt;@Laura_Lancaster&lt;/a&gt;&amp;nbsp;or this one with the same run size.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this solution may work for you,&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jun 2025 13:00:08 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/DOE-with-two-type-of-constraints/m-p/879568#M104293</guid>
      <dc:creator>Victor_G</dc:creator>
      <dc:date>2025-06-12T13:00:08Z</dc:date>
    </item>
    <item>
      <title>Re: DOE with two type of constraints</title>
      <link>https://community.jmp.com/t5/Discussions/DOE-with-two-type-of-constraints/m-p/879734#M104310</link>
      <description>&lt;P&gt;Thank you Laura. It works. Why it works with with the "or" command within the disallowed combinations, I do not understand and would probably never have tried myself. Thanks.&lt;/P&gt;</description>
      <pubDate>Fri, 13 Jun 2025 11:56:35 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/DOE-with-two-type-of-constraints/m-p/879734#M104310</guid>
      <dc:creator>Sop</dc:creator>
      <dc:date>2025-06-13T11:56:35Z</dc:date>
    </item>
    <item>
      <title>Re: DOE with two type of constraints</title>
      <link>https://community.jmp.com/t5/Discussions/DOE-with-two-type-of-constraints/m-p/879747#M104312</link>
      <description>&lt;P&gt;Hi Victor, this is amazing! This will give me back the control of all my colleagues constraints! Thanks a lot for sharing&lt;/P&gt;</description>
      <pubDate>Fri, 13 Jun 2025 13:01:31 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/DOE-with-two-type-of-constraints/m-p/879747#M104312</guid>
      <dc:creator>Sop</dc:creator>
      <dc:date>2025-06-13T13:01:31Z</dc:date>
    </item>
  </channel>
</rss>

