<?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: Custom DoE: How to set up Factor Constraints with Script in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Custom-DoE-How-to-set-up-Factor-Constraints-with-Script/m-p/761869#M93986</link>
    <description>&lt;P&gt;Hello &lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/11568"&gt;@Victor_G&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;thank you very much for the quick response!&lt;/P&gt;&lt;P&gt;Thank you also for the additional information.&lt;/P&gt;&lt;P&gt;Sadly if I try to run this expression now, I´m running into an error. I even renamed the factors and copied your line into my script and set up only the main interactions, but I still do get this message.&lt;/P&gt;&lt;P&gt;What could be the reason for this? I´m using JMP17.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="basti41aa_0-1716899488395.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/64555i518C2CF110FE1A8C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="basti41aa_0-1716899488395.png" alt="basti41aa_0-1716899488395.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance!&lt;/P&gt;</description>
    <pubDate>Tue, 28 May 2024 12:33:46 GMT</pubDate>
    <dc:creator>basti41aa</dc:creator>
    <dc:date>2024-05-28T12:33:46Z</dc:date>
    <item>
      <title>Custom DoE: How to set up Factor Constraints with Script</title>
      <link>https://community.jmp.com/t5/Discussions/Custom-DoE-How-to-set-up-Factor-Constraints-with-Script/m-p/761858#M93984</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I´m trying to play around with the Catapult from Sigmazone (&lt;A href="https://sigmazone.com/catapult/" target="_blank" rel="noopener"&gt;https://sigmazone.com/catapult/&lt;/A&gt;) and practice my DoE skills, but I´m having trouble setting up the factor constraints.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="basti41aa_3-1716897872598.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/64548i71043BCF8484286F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="basti41aa_3-1716897872598.png" alt="basti41aa_3-1716897872598.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Basically I´m having 5 continous factors with the following levels:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Release Angle --&amp;gt; 90 - 185&lt;/LI&gt;&lt;LI&gt;Firing Angle --&amp;gt; 90 - 140&lt;/LI&gt;&lt;LI&gt;Cup Elevation --&amp;gt; 200 - 300&lt;/LI&gt;&lt;LI&gt;Pin Elevation --&amp;gt; 100 - 200&lt;/LI&gt;&lt;LI&gt;Bungee Position --&amp;gt; 100 - 200&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;The problem is, that the Release Angle has to be always to be 5 units higher than the Firing Angle, otherwise the catapult won´t shoot.&lt;/P&gt;&lt;P&gt;I found it hard to find any documentation on how to use this script correctly, so I´m asking this questions here now.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried this, but this does not work unfortunately:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Release Angle - Firing Angle &amp;gt;= 5&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;E.g. this will result in this, where Run 5 is not possible to perform.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="basti41aa_1-1716897652403.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/64544iB342E85A51F24FB2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="basti41aa_1-1716897652403.png" alt="basti41aa_1-1716897652403.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I found a couple of youtube Videos, where they tried to solve this catapult, but they will always ignore this constraint and due to simplicity just keep the firing Angle at a constant (e.g. 110) and then set the Release Angle from 115-185.&lt;/P&gt;&lt;P&gt;Can you help me with this? Thank you very much in advance!&lt;/P&gt;</description>
      <pubDate>Tue, 28 May 2024 12:05:28 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Custom-DoE-How-to-set-up-Factor-Constraints-with-Script/m-p/761858#M93984</guid>
      <dc:creator>basti41aa</dc:creator>
      <dc:date>2024-05-28T12:05:28Z</dc:date>
    </item>
    <item>
      <title>Re: Custom DoE: How to set up Factor Constraints with Script</title>
      <link>https://community.jmp.com/t5/Discussions/Custom-DoE-How-to-set-up-Factor-Constraints-with-Script/m-p/761867#M93985</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/57503"&gt;@basti41aa&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;Your constraint is ok mathematically, but may not be correct regarding scripting language JSL.&lt;BR /&gt;I have good results defining the constraint using "&lt;A href="https://www.jmp.com/support/help/en/17.2/#page/jmp/define-factor-constraints.shtml" target="_self"&gt;Specify linear constraints&lt;/A&gt;" panel and this expression :&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;{1 * :RA + -1 * :FA &amp;gt;= 5}&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I obtain this design (when specifying only main effects in the model using Custom Design platform) :&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Victor_G_0-1716898662976.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/64554iF5752C9D9BB048D2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Victor_G_0-1716898662976.png" alt="Victor_G_0-1716898662976.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Here is the script to generate the design (and datatable attached) :&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;DOE(
	Custom Design,
	{Add Response( Maximize, "Y", ., ., . ),
	Add Factor( Continuous, 90, 185, "RA", 0 ),
	Add Factor( Continuous, 90, 140, "FA", 0 ),
	Add Factor( Continuous, 200, 300, "CE", 0 ),
	Add Factor( Continuous, 100, 200, "PE", 0 ),
	Add Factor( Continuous, 100, 200, "BP", 0 ), Set Random Seed( 5840095 ),
	Number of Starts( 51664 ), Add Constraint( [-1 1 0 0 0 -5] ), Add Term( {1, 0} ),
	Add Term( {1, 1} ), Add Term( {2, 1} ), Add Term( {3, 1} ), Add Term( {4, 1} ),
	Add Term( {5, 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( {1, 1}, {5, 1} ), Add Alias Term( {2, 1}, {3, 1} ),
	Add Alias Term( {2, 1}, {4, 1} ), Add Alias Term( {2, 1}, {5, 1} ),
	Add Alias Term( {3, 1}, {4, 1} ), Add Alias Term( {3, 1}, {5, 1} ),
	Add Alias Term( {4, 1}, {5, 1} ), Set Sample Size( 12 ), Simulate Responses( 0 ),
	Save X Matrix( 0 ), Make Design}
)&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I highly recommend reading the great blog post by&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/610"&gt;@Jed_Campbell&lt;/a&gt;&amp;nbsp;regarding factor 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;</description>
      <pubDate>Tue, 28 May 2024 12:22:15 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Custom-DoE-How-to-set-up-Factor-Constraints-with-Script/m-p/761867#M93985</guid>
      <dc:creator>Victor_G</dc:creator>
      <dc:date>2024-05-28T12:22:15Z</dc:date>
    </item>
    <item>
      <title>Re: Custom DoE: How to set up Factor Constraints with Script</title>
      <link>https://community.jmp.com/t5/Discussions/Custom-DoE-How-to-set-up-Factor-Constraints-with-Script/m-p/761869#M93986</link>
      <description>&lt;P&gt;Hello &lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/11568"&gt;@Victor_G&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;thank you very much for the quick response!&lt;/P&gt;&lt;P&gt;Thank you also for the additional information.&lt;/P&gt;&lt;P&gt;Sadly if I try to run this expression now, I´m running into an error. I even renamed the factors and copied your line into my script and set up only the main interactions, but I still do get this message.&lt;/P&gt;&lt;P&gt;What could be the reason for this? I´m using JMP17.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="basti41aa_0-1716899488395.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/64555i518C2CF110FE1A8C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="basti41aa_0-1716899488395.png" alt="basti41aa_0-1716899488395.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance!&lt;/P&gt;</description>
      <pubDate>Tue, 28 May 2024 12:33:46 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Custom-DoE-How-to-set-up-Factor-Constraints-with-Script/m-p/761869#M93986</guid>
      <dc:creator>basti41aa</dc:creator>
      <dc:date>2024-05-28T12:33:46Z</dc:date>
    </item>
    <item>
      <title>Re: Custom DoE: How to set up Factor Constraints with Script</title>
      <link>https://community.jmp.com/t5/Discussions/Custom-DoE-How-to-set-up-Factor-Constraints-with-Script/m-p/761871#M93987</link>
      <description>&lt;P&gt;Try to specify your constraint using the "Specify Linear Constraints" instead of the "Disallowed Combinations Script".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 May 2024 12:38:03 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Custom-DoE-How-to-set-up-Factor-Constraints-with-Script/m-p/761871#M93987</guid>
      <dc:creator>Victor_G</dc:creator>
      <dc:date>2024-05-28T12:38:03Z</dc:date>
    </item>
  </channel>
</rss>

