<?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: JSL and DOE[]  platform for custom design, can you conditionally 'Add a factor' based on the value of a variable from a modal window ? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/JSL-and-DOE-platform-for-custom-design-can-you-conditionally-Add/m-p/541402#M76154</link>
    <description>&lt;P&gt;Thank you Byron,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Loading from a table is a nice idea.&lt;/P&gt;&lt;P&gt;Though I have to adjust the model&amp;nbsp; as it is more complicated as a RSM: it has branching factors as in the publication by Peter Goos and Bradley Jones:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Goos and Jones (2019) Optimal Experimental Design in the presence of Nested Factors. Technometrics.&lt;/P&gt;&lt;P&gt;&lt;A href="https://doi.org/10.1080/00401706.2018.1562986" target="_blank"&gt;https://doi.org/10.1080/00401706.2018.1562986&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you also have examples where the code is build in text format and then used to an evaluate() expression.&lt;/P&gt;&lt;P&gt;Like:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;DOECODE = "Part of the code " || if(..,) || etc...
.
.
DOEcommand = evaluate(DOECODE);

DOETable = (DOEcommand &amp;lt;&amp;lt; Make Table);&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 07 Sep 2022 09:12:23 GMT</pubDate>
    <dc:creator>Not_A_Student</dc:creator>
    <dc:date>2022-09-07T09:12:23Z</dc:date>
    <item>
      <title>JSL and DOE[]  platform for custom design, can you conditionally 'Add a factor' based on the value of a variable from a modal window ?</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-and-DOE-platform-for-custom-design-can-you-conditionally-Add/m-p/481390#M72568</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to create&amp;nbsp; a script, where based on some previous input variable, the DOE[] object is messaged to work with one additional factor.&lt;/P&gt;&lt;P&gt;The DOE design generation is now heavy to run (about a 30sec), so I am looking for a lean way (e.g. tweak it before sending the 'make design' message).&lt;/P&gt;&lt;P&gt;Ideally i would like to work with an if clause, checking if a said boolean variable is true and if so add the factor to the custom design.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Some 'pseudocode':&lt;/P&gt;&lt;PRE&gt;AddSpecialFactor = 1; /* decision rule to add factor, will be retrieved from a modal window based on some more complex molecule chemistry input */

D = DOE(

custom design,

Add Factor(continuous, "A",.....),

Add Factor( ...),

..

If&amp;nbsp; &amp;nbsp;(AddSpecialFactor = 1) then Add Factor(....),



Add Term(),

..

If (AddSpecialFactor = 1)&amp;nbsp; then Add Term() ...,&lt;/PRE&gt;&lt;P&gt;All suggestions are more than welcome&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 16:57:32 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-and-DOE-platform-for-custom-design-can-you-conditionally-Add/m-p/481390#M72568</guid>
      <dc:creator>Not_A_Student</dc:creator>
      <dc:date>2023-06-09T16:57:32Z</dc:date>
    </item>
    <item>
      <title>Re: JSL and DOE[]  platform for custom design, can you conditionally 'Add a factor' based on the value of a variable from a modal window ?</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-and-DOE-platform-for-custom-design-can-you-conditionally-Add/m-p/482306#M72668</link>
      <description>&lt;P&gt;That's kind of a cool idea for design generation.&lt;/P&gt;
&lt;P&gt;I was working on just taking designs from a CSV and generating DOEs.&amp;nbsp;&lt;LI-MESSAGE title="Automating Design Generation" uid="407039" url="https://community.jmp.com/t5/Byron-Wingerd-s-Blog/Automating-Design-Generation/m-p/407039#U407039" 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;It might work to have your script concept generate a data table and then use the script in the blog above to load and run the DOE platform.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Maybe get a list of column names, and if that list contains certain words, then add columns with the appropriate factor levels?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Apr 2022 18:13:13 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-and-DOE-platform-for-custom-design-can-you-conditionally-Add/m-p/482306#M72668</guid>
      <dc:creator>Byron_JMP</dc:creator>
      <dc:date>2022-04-26T18:13:13Z</dc:date>
    </item>
    <item>
      <title>Re: JSL and DOE[]  platform for custom design, can you conditionally 'Add a factor' based on the value of a variable from a modal window ?</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-and-DOE-platform-for-custom-design-can-you-conditionally-Add/m-p/541402#M76154</link>
      <description>&lt;P&gt;Thank you Byron,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Loading from a table is a nice idea.&lt;/P&gt;&lt;P&gt;Though I have to adjust the model&amp;nbsp; as it is more complicated as a RSM: it has branching factors as in the publication by Peter Goos and Bradley Jones:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Goos and Jones (2019) Optimal Experimental Design in the presence of Nested Factors. Technometrics.&lt;/P&gt;&lt;P&gt;&lt;A href="https://doi.org/10.1080/00401706.2018.1562986" target="_blank"&gt;https://doi.org/10.1080/00401706.2018.1562986&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you also have examples where the code is build in text format and then used to an evaluate() expression.&lt;/P&gt;&lt;P&gt;Like:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;DOECODE = "Part of the code " || if(..,) || etc...
.
.
DOEcommand = evaluate(DOECODE);

DOETable = (DOEcommand &amp;lt;&amp;lt; Make Table);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 07 Sep 2022 09:12:23 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-and-DOE-platform-for-custom-design-can-you-conditionally-Add/m-p/541402#M76154</guid>
      <dc:creator>Not_A_Student</dc:creator>
      <dc:date>2022-09-07T09:12:23Z</dc:date>
    </item>
    <item>
      <title>Re: JSL and DOE[]  platform for custom design, can you conditionally 'Add a factor' based on the value of a variable from a modal window ?</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-and-DOE-platform-for-custom-design-can-you-conditionally-Add/m-p/541427#M76157</link>
      <description>&lt;P&gt;Here is an example of how you might script this process.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default to Here( 1 );

dialog = New Window( "Optional Factor", &amp;lt;&amp;lt; Modal,
	Outline Box( "Choice",
		Text Box( "Add X4?" ),
		Text Box( "Click OK to add" ),
		Text Box( "Click Cancel to skip" )
	),
	H List Box(
		Button Box( "OK" ),
		Button Box( "Cancel" )
	)
);

doe = DOE( Custom Design,
	{Add Response( Maximize, "Y", ., ., . ),
	Add Factor( Continuous, -1, 1, "X1", 0 ),
	Add Factor( Continuous, -1, 1, "X2", 0 ),
	Add Factor( Continuous, -1, 1, "X3", 0 ), Set Random Seed( 30650037 ),
	Add Term( {1, 0} ), Add Term( {1, 1} ), Add Term( {2, 1} ), Add Term( {3, 1} ),
	Add Term( {1, 1}, {2, 1} ), Add Term( {1, 1}, {3, 1} ),
	Add Term( {2, 1}, {3, 1} ), Set Sample Size( 12 ), Simulate Responses( 0 ),
	Save X Matrix( 0 )}
);

// add 4th factor and the associated main effect and interaction terms
If( dialog["Button"] == 1,
	doe
		&amp;lt;&amp;lt; Add Factor( Continuous, -1, 1, "X4", 0 )
		&amp;lt;&amp;lt; Add Term( {4, 1} )
		&amp;lt;&amp;lt; Add Term( {1, 1}, {4, 1} )
		&amp;lt;&amp;lt; Add Term( {2, 1}, {4, 1} )
		&amp;lt;&amp;lt; Add Term( {3, 1}, {4, 1} )
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 07 Sep 2022 11:56:49 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-and-DOE-platform-for-custom-design-can-you-conditionally-Add/m-p/541427#M76157</guid>
      <dc:creator>Mark_Bailey</dc:creator>
      <dc:date>2022-09-07T11:56:49Z</dc:date>
    </item>
    <item>
      <title>Re: JSL and DOE[]  platform for custom design, can you conditionally 'Add a factor' based on the value of a variable from a modal window ?</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-and-DOE-platform-for-custom-design-can-you-conditionally-Add/m-p/541536#M76161</link>
      <description>&lt;P&gt;Thank you !&amp;nbsp;&lt;/P&gt;&lt;P&gt;It works brilliantly :)&lt;/img&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Sep 2022 14:34:58 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-and-DOE-platform-for-custom-design-can-you-conditionally-Add/m-p/541536#M76161</guid>
      <dc:creator>Not_A_Student</dc:creator>
      <dc:date>2022-09-07T14:34:58Z</dc:date>
    </item>
  </channel>
</rss>

