<?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: Profiler Remember Settings in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/JSL-Profiler-Remember-Settings/m-p/724304#M90641</link>
    <description>&lt;P&gt;I'm not sure how happy JMP would be about adding that many different options to the profiler (20*20*20*20 or am I missing something?).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But you could add new row to your table which you update with your values with and then loop as many times as you have different settings while updating that and using &amp;lt;&amp;lt; Set to Data in Row&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);
dt = Open("$SAMPLE_DATA/Tiretread.jmp", Invisible);

obj = dt &amp;lt;&amp;lt; Contour Profiler(
	Y(
		:Pred Formula ABRASION, :Pred Formula MODULUS,
		:Pred Formula ELONG, :Pred Formula HARDNESS
	),
	Invisible
);


settings = As List(Repeat(-1::1::0.1, 3)`);

dt &amp;lt;&amp;lt; Add Rows(1);
max_row = N Rows(dt);
For Each({setting}, settings,
	dt[max_row, {"SILICA", "SILANE", "SULFUR"}] = setting;
	obj &amp;lt;&amp;lt; Set to Data in Row(max_row);
	obj &amp;lt;&amp;lt; Remember Settings;
);
dt &amp;lt;&amp;lt; Delete Rows(max_row);

obj &amp;lt;&amp;lt; show window;

&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 14 Feb 2024 15:04:35 GMT</pubDate>
    <dc:creator>jthi</dc:creator>
    <dc:date>2024-02-14T15:04:35Z</dc:date>
    <item>
      <title>JSL: Profiler Remember Settings</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-Profiler-Remember-Settings/m-p/724272#M90630</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a model in the profiler and would like to save a bunch of different settings. Usually, I use the Remember Parameter Setting in the Profiler to do this. However, in this particular case I want to save all combinations for the parameters X1 to X4 from -1 to +1 in 0.1 steps.&lt;/P&gt;&lt;P&gt;I need some help with the following JSL Code to do this:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Profiler(
	Y( :Y ),
	Profiler(
		1,
		Confidence Intervals( 1 ),
		Term Value(
			:"X1"n( 0, Lock( 0 ), Show( 1 ) ),
			:"X2"n( 0, Lock( 0 ), Show( 1 ) ),
			:"X3"n( 0, Lock( 0 ), Show( 1 ) ),
			:"X4"n( 0, Lock( 0 ), Show( 1 ) )
		),
		&lt;FONT color="#FF0000"&gt;Remember Settings( "Setting 1", Differences Report( 1 ) ),
		Term Value(
			:"X1"n( 0, Lock( 0 ), Show( 1 ) ),
			:"X2"n( 0, Lock( 0 ), Show( 1 ) ),
			:"X3"n( 0, Lock( 0 ), Show( 1 ) ),
			:"X4"n( 0, Lock( 0 ), Show( 1 ) )
		)
			)&lt;/FONT&gt;
		);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;It would be awesome if someone could tweak the existing code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Feb 2024 11:02:12 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-Profiler-Remember-Settings/m-p/724272#M90630</guid>
      <dc:creator>Marco_</dc:creator>
      <dc:date>2024-02-14T11:02:12Z</dc:date>
    </item>
    <item>
      <title>Re: JSL: Profiler Remember Settings</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-Profiler-Remember-Settings/m-p/724304#M90641</link>
      <description>&lt;P&gt;I'm not sure how happy JMP would be about adding that many different options to the profiler (20*20*20*20 or am I missing something?).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But you could add new row to your table which you update with your values with and then loop as many times as you have different settings while updating that and using &amp;lt;&amp;lt; Set to Data in Row&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);
dt = Open("$SAMPLE_DATA/Tiretread.jmp", Invisible);

obj = dt &amp;lt;&amp;lt; Contour Profiler(
	Y(
		:Pred Formula ABRASION, :Pred Formula MODULUS,
		:Pred Formula ELONG, :Pred Formula HARDNESS
	),
	Invisible
);


settings = As List(Repeat(-1::1::0.1, 3)`);

dt &amp;lt;&amp;lt; Add Rows(1);
max_row = N Rows(dt);
For Each({setting}, settings,
	dt[max_row, {"SILICA", "SILANE", "SULFUR"}] = setting;
	obj &amp;lt;&amp;lt; Set to Data in Row(max_row);
	obj &amp;lt;&amp;lt; Remember Settings;
);
dt &amp;lt;&amp;lt; Delete Rows(max_row);

obj &amp;lt;&amp;lt; show window;

&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Feb 2024 15:04:35 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-Profiler-Remember-Settings/m-p/724304#M90641</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2024-02-14T15:04:35Z</dc:date>
    </item>
    <item>
      <title>Re: JSL: Profiler Remember Settings</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-Profiler-Remember-Settings/m-p/724392#M90660</link>
      <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/14366"&gt;@jthi&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks a lot for providing the code. The code provides me 21 remembered settings from -1 to +1 in 0.1 steps for all factors but no combinations between them. This is actually almost what I want. I thought that it might be taff for JMP to have&amp;nbsp;&lt;SPAN&gt;21*21*21*21 options, but I would really like to give it a try. Could you tweak the code for me to make that possible?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Feb 2024 10:51:42 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-Profiler-Remember-Settings/m-p/724392#M90660</guid>
      <dc:creator>Marco_</dc:creator>
      <dc:date>2024-02-15T10:51:42Z</dc:date>
    </item>
    <item>
      <title>Re: JSL: Profiler Remember Settings</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-Profiler-Remember-Settings/m-p/724394#M90661</link>
      <description>&lt;P&gt;You should be able to use Full Factorial Design to create all possible combinations.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would suggest NOT running this with the all possible combinations&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);
Clear Log();

// Calculate combinations - START
doe_platform = DOE(
	Full Factorial Design,
	{Add Response(Maximize, "Y", ., ., .), Add Factor(
		Continuous,
		{1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21},
		"X1",
		0
	), Add Factor(
		Continuous,
		{1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21},
		"X2",
		0
	), Add Factor(
		Continuous,
		{1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21},
		"X3",
		0
	), Add Factor(
		Continuous,
		{1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21},
		"X4",
		0
	), Set Random Seed(6613116), Make Design, Simulate Responses(0),
	Set Run Order(Sort Left to Right)},
	Invisible
);

dt = doe_platform &amp;lt;&amp;lt; Make Table(Invisible);
doe_platform &amp;lt;&amp;lt; Close Window;

m = dt[0, 2::5];
Close(dt, no save);
Show(N Items(m), Dim(m), N Row(m) == 21^4); // N Items(m) = 777924; Dim(m) = [194481 4]; N Row(m) == 21 ^ 4 = 1;

settings = As List((m - 11) / 10);

m = Empty();
// Calculate combinations - END


dt = Open("$SAMPLE_DATA/Tiretread.jmp", Invisible);
dt &amp;lt;&amp;lt; New Column("A", Numeric, Continuous, Formula(
	:SILICA * :SILANE * :SULFUR * :ELONG
));

obj = dt &amp;lt;&amp;lt; Contour Profiler(
	Y(A),
	Invisible
);

dt &amp;lt;&amp;lt; Add Rows(1);
max_row = N Rows(dt);
For Each({setting}, settings[1::100],
	dt[max_row, {"SILICA", "SILANE", "SULFUR", "ELONG"}] = setting;
	obj &amp;lt;&amp;lt; Set to Data in Row(max_row);
	obj &amp;lt;&amp;lt; Remember Settings;
);
dt &amp;lt;&amp;lt; Delete Rows(max_row);

obj &amp;lt;&amp;lt; show window;
Write();&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 15 Feb 2024 12:08:38 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-Profiler-Remember-Settings/m-p/724394#M90661</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2024-02-15T12:08:38Z</dc:date>
    </item>
    <item>
      <title>Re: JSL: Profiler Remember Settings</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-Profiler-Remember-Settings/m-p/724404#M90665</link>
      <description>&lt;P&gt;Thanks a lot! I tested the script and had no issues until 3000 combinations. That was the point where I hadn't had enough pacient ;)&lt;/img&gt;&lt;/P&gt;&lt;P&gt;This is really a big help for me!&lt;/P&gt;&lt;P&gt;Just in case I want to reduce the number of steps from 21 to 5. What do I need to adapt in the code?&lt;/P&gt;&lt;P&gt;I guess the sequence from 1 to 21 in the Add Factor function would be reduced to 1 to 5 and NRow from 21^4 to 5^4. Any other adaptions?&lt;/P&gt;</description>
      <pubDate>Thu, 15 Feb 2024 13:45:52 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-Profiler-Remember-Settings/m-p/724404#M90665</guid>
      <dc:creator>Marco_</dc:creator>
      <dc:date>2024-02-15T13:45:52Z</dc:date>
    </item>
    <item>
      <title>Re: JSL: Profiler Remember Settings</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-Profiler-Remember-Settings/m-p/724416#M90672</link>
      <description>&lt;P&gt;You will have to modify the DOE platform part and then the calculation which creates the steps&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;settings = As List((m - 11) / 10);
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 15 Feb 2024 15:32:34 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-Profiler-Remember-Settings/m-p/724416#M90672</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2024-02-15T15:32:34Z</dc:date>
    </item>
  </channel>
</rss>

