<?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: Complex DOE Constraints in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Complex-DOE-Constraints/m-p/767563#M94773</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/58072"&gt;@NimaHojat&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Welcome in the Community !&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To better understand how to set up factors constraints like the one you want, I would highly recommend reading the great article&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/610"&gt;@Jed_Campbell&lt;/a&gt;&amp;nbsp;wrote about constraints :&amp;nbsp;&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;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Concerning your specific use case and based on the limited information available, it seems you're doing a mixture design (since you are more interested about ratios/relative quantities, your total sum of the components being equal to 100% / 1).&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can use&amp;nbsp;&lt;A href="https://www.jmp.com/support/help/en/17.2/#page/jmp/custom-designs.shtml#" target="_blank" rel="noopener"&gt;Custom Designs&lt;/A&gt; to create your specific mixture design with the constraints :&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Specify your response and mixture factors A, B, C, D :&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Victor_G_0-1718953194519.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/65480iA36BBE580244E418/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Victor_G_0-1718953194519.png" alt="Victor_G_0-1718953194519.png" /&gt;&lt;/span&gt;&lt;/LI&gt;
&lt;LI&gt;After clicking on "Continue", you can set up your constraints in the panel "Define Factor Constraints" and the option "Specify Linear Constraints". Your constraints can be expressed after a short transformation as :
&lt;OL&gt;
&lt;LI&gt;A can't be more than 27,4% of B :&amp;nbsp;
&lt;PRE&gt;1 * :A + -0.274 * :B &amp;lt;= 0&lt;CODE class=" language-jsl"&gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;/LI&gt;
&lt;LI&gt;C can’t be higher than 3% of (D + B) :&amp;nbsp;&lt;BR /&gt;
&lt;PRE&gt;-0.03 * :B + 1 * :C + -0.03 * :d :D&lt;/img&gt; &amp;lt;= 0&lt;/PRE&gt;
&lt;/LI&gt;
&lt;LI&gt;D should be less than 25% of B :&lt;BR /&gt;
&lt;PRE&gt;-0.25 * :B + 1 * :d &amp;lt;= 0&lt;/PRE&gt;
&lt;/LI&gt;
&lt;LI&gt;Last constraint is already taken into account when setting this DoE as a Mixture design : A+B+C+D = 1 (100%)&lt;BR /&gt;Note: Sorry, for some reasons the JSL code is not working in the JMP Community when writing ":D" for the column corresponding to factor D, so I used ":d" instead. But it is the mixture factor D, not someting else, so it should be noted ":D" if you note this factor as "D".&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;/LI&gt;
&lt;LI&gt;You can set up these constraints directly in the panel, specify the assumed model (I just choose a main effect mixture model for illustration here) and choose an according number of runs for your objective (I just stayed with the default recommended number of runs here) :&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Victor_G_1-1718953672423.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/65481i03A985FC426F9F6B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Victor_G_1-1718953672423.png" alt="Victor_G_1-1718953672423.png" /&gt;&lt;/span&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;You can then create your design, and if needed you can check your constraints have been respected by creating formula in your data table corresponding to the ratios/comparison you have between your mixture factors :&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Victor_G_2-1718953842819.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/65482iD26D9D299388456D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Victor_G_2-1718953842819.png" alt="Victor_G_2-1718953842819.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is the script to reproduce the design shown here :&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;DOE(
	Custom Design,
	{Add Response( Maximize, "Y", ., ., . ), Add Factor( Mixture, 0, 1, "A", 0 ),
	Add Factor( Mixture, 0, 1, "B", 0 ), Add Factor( Mixture, 0, 1, "C", 0 ),
	Add Factor( Mixture, 0, 1, "D", 0 ), Set Random Seed( 1982181060 ),
	Number of Starts( 49914 ), Add Constraint(
		[1 -0.274 0 0 0, 0 -0.03 1 -0.03 0, 0 -0.25 0 1 0]
	), Add Term( {1, 1} ), Add Term( {2, 1} ), Add Term( {3, 1} ),
	Add Term( {4, 1} ), 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( 10 ), Simulate Responses( 0 ),
	Save X Matrix( 0 ), Make Design, Set Run Order( Randomize ), Make Table}
)&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;And I attach the datatable with the design used for illustration here if you're more familiar with this than JSL script.&lt;/P&gt;
&lt;P&gt;I hope this answer will help you,&lt;/P&gt;</description>
    <pubDate>Fri, 21 Jun 2024 09:21:08 GMT</pubDate>
    <dc:creator>Victor_G</dc:creator>
    <dc:date>2024-06-21T09:21:08Z</dc:date>
    <item>
      <title>Complex DOE Constraints</title>
      <link>https://community.jmp.com/t5/Discussions/Complex-DOE-Constraints/m-p/767439#M94762</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm working on a DOE involving four chemicals (A, B, C, and D) and need to set constraints where the components are relative to each other. Here are the specific constraints:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;A can’t be more than 27.4% of B&lt;/LI&gt;&lt;LI&gt;C can’t be higher than 3% of (D + B)&lt;/LI&gt;&lt;LI&gt;D should be less than 25% of B&lt;/LI&gt;&lt;LI&gt;The total should equal 100%&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Is it possible to enter these constraints in JMP? If so, how can I set this up?&lt;/P&gt;&lt;P&gt;Thanks in advance for your help!&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jun 2024 18:37:08 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Complex-DOE-Constraints/m-p/767439#M94762</guid>
      <dc:creator>NimaHojat</dc:creator>
      <dc:date>2024-06-20T18:37:08Z</dc:date>
    </item>
    <item>
      <title>Re: Complex DOE Constraints</title>
      <link>https://community.jmp.com/t5/Discussions/Complex-DOE-Constraints/m-p/767563#M94773</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/58072"&gt;@NimaHojat&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Welcome in the Community !&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To better understand how to set up factors constraints like the one you want, I would highly recommend reading the great article&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/610"&gt;@Jed_Campbell&lt;/a&gt;&amp;nbsp;wrote about constraints :&amp;nbsp;&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;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Concerning your specific use case and based on the limited information available, it seems you're doing a mixture design (since you are more interested about ratios/relative quantities, your total sum of the components being equal to 100% / 1).&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can use&amp;nbsp;&lt;A href="https://www.jmp.com/support/help/en/17.2/#page/jmp/custom-designs.shtml#" target="_blank" rel="noopener"&gt;Custom Designs&lt;/A&gt; to create your specific mixture design with the constraints :&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Specify your response and mixture factors A, B, C, D :&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Victor_G_0-1718953194519.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/65480iA36BBE580244E418/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Victor_G_0-1718953194519.png" alt="Victor_G_0-1718953194519.png" /&gt;&lt;/span&gt;&lt;/LI&gt;
&lt;LI&gt;After clicking on "Continue", you can set up your constraints in the panel "Define Factor Constraints" and the option "Specify Linear Constraints". Your constraints can be expressed after a short transformation as :
&lt;OL&gt;
&lt;LI&gt;A can't be more than 27,4% of B :&amp;nbsp;
&lt;PRE&gt;1 * :A + -0.274 * :B &amp;lt;= 0&lt;CODE class=" language-jsl"&gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;/LI&gt;
&lt;LI&gt;C can’t be higher than 3% of (D + B) :&amp;nbsp;&lt;BR /&gt;
&lt;PRE&gt;-0.03 * :B + 1 * :C + -0.03 * :d :D&lt;/img&gt; &amp;lt;= 0&lt;/PRE&gt;
&lt;/LI&gt;
&lt;LI&gt;D should be less than 25% of B :&lt;BR /&gt;
&lt;PRE&gt;-0.25 * :B + 1 * :d &amp;lt;= 0&lt;/PRE&gt;
&lt;/LI&gt;
&lt;LI&gt;Last constraint is already taken into account when setting this DoE as a Mixture design : A+B+C+D = 1 (100%)&lt;BR /&gt;Note: Sorry, for some reasons the JSL code is not working in the JMP Community when writing ":D" for the column corresponding to factor D, so I used ":d" instead. But it is the mixture factor D, not someting else, so it should be noted ":D" if you note this factor as "D".&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;/LI&gt;
&lt;LI&gt;You can set up these constraints directly in the panel, specify the assumed model (I just choose a main effect mixture model for illustration here) and choose an according number of runs for your objective (I just stayed with the default recommended number of runs here) :&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Victor_G_1-1718953672423.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/65481i03A985FC426F9F6B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Victor_G_1-1718953672423.png" alt="Victor_G_1-1718953672423.png" /&gt;&lt;/span&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;You can then create your design, and if needed you can check your constraints have been respected by creating formula in your data table corresponding to the ratios/comparison you have between your mixture factors :&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Victor_G_2-1718953842819.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/65482iD26D9D299388456D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Victor_G_2-1718953842819.png" alt="Victor_G_2-1718953842819.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is the script to reproduce the design shown here :&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;DOE(
	Custom Design,
	{Add Response( Maximize, "Y", ., ., . ), Add Factor( Mixture, 0, 1, "A", 0 ),
	Add Factor( Mixture, 0, 1, "B", 0 ), Add Factor( Mixture, 0, 1, "C", 0 ),
	Add Factor( Mixture, 0, 1, "D", 0 ), Set Random Seed( 1982181060 ),
	Number of Starts( 49914 ), Add Constraint(
		[1 -0.274 0 0 0, 0 -0.03 1 -0.03 0, 0 -0.25 0 1 0]
	), Add Term( {1, 1} ), Add Term( {2, 1} ), Add Term( {3, 1} ),
	Add Term( {4, 1} ), 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( 10 ), Simulate Responses( 0 ),
	Save X Matrix( 0 ), Make Design, Set Run Order( Randomize ), Make Table}
)&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;And I attach the datatable with the design used for illustration here if you're more familiar with this than JSL script.&lt;/P&gt;
&lt;P&gt;I hope this answer will help you,&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jun 2024 09:21:08 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Complex-DOE-Constraints/m-p/767563#M94773</guid>
      <dc:creator>Victor_G</dc:creator>
      <dc:date>2024-06-21T09:21:08Z</dc:date>
    </item>
    <item>
      <title>Re: Complex DOE Constraints</title>
      <link>https://community.jmp.com/t5/Discussions/Complex-DOE-Constraints/m-p/769462#M95012</link>
      <description>&lt;P&gt;Thank you Victor, that's really useful :)&lt;/img&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Jul 2024 08:06:14 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Complex-DOE-Constraints/m-p/769462#M95012</guid>
      <dc:creator>NimaHojat</dc:creator>
      <dc:date>2024-07-01T08:06:14Z</dc:date>
    </item>
  </channel>
</rss>

