<?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: Integral of a Desirability Function in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Integral-of-a-Desirability-Function/m-p/729264#M91159</link>
    <description>&lt;P&gt;Hi &lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/30270"&gt;@Marco_&lt;/a&gt;&amp;nbsp;, could you explain in more detail which values you want to vary and which values you want to integrate?&lt;BR /&gt;I wonder about the integral. Maybe better average?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also - will the integral/average be over the whole range or just a small region around a central value x1c +/- sigma?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regarding integral in general - according to the scripting index, the second argument should be a variable.&lt;BR /&gt;So I was wondering if it is at all possible to put a column name there:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Integrate(:x1, :x1, -1, 1)&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_3-1709367248910.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/61741i964A79110D64DE60/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_3-1709367248910.png" alt="hogi_3-1709367248910.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Not really:&amp;nbsp;Jmp &lt;STRONG&gt;first&lt;/STRONG&gt; replaces x1 in the first argument with the entry of column :x1 - and &lt;STRONG&gt;then&lt;/STRONG&gt; uses this constant numeric value for &lt;FONT face="courier new,courier"&gt;Integrate&lt;/FONT&gt;, so&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Integrate(:x1,:x1,-1,1) = :x1 * Integrate(1,:x1,-1,1)= 2 :x1&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;[along this line: If there is no value in column :x1, the result is undefined.]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Same finding for the profiler:&lt;BR /&gt;- Jmp provides a slider for :x1 - despite the Integral.&lt;/P&gt;&lt;P&gt;- the result is not 0, but&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;FONT face="courier new,courier"&gt;2&amp;nbsp;x1&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_2-1709366388791.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/61740i45897925F62725C5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_2-1709366388791.png" alt="hogi_2-1709366388791.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;This fits to your findings: &lt;FONT face="courier new,courier"&gt;Integral = 2 x Expanded Desirability.&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;As a solution, let's follow the scripting index and use a variable (z):&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_0-1709308671256.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/61709i3781586591D50075/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_0-1709308671256.png" alt="hogi_0-1709308671256.png" /&gt;&lt;/span&gt;&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="hogi_1-1709308725719.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/61710i6CEB280F101FCDD5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_1-1709308725719.png" alt="hogi_1-1709308725719.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you generate a profiler plot for &lt;FONT face="courier new,courier"&gt;Integral&lt;/FONT&gt;, Jmp just displays sliders for x2 and x3 and calculates the integral over z (old :x1):&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="prediction_profiler.gif" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/61711i9E78E506F263D4CE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="prediction_profiler.gif" alt="prediction_profiler.gif" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 02 Mar 2024 08:23:47 GMT</pubDate>
    <dc:creator>hogi</dc:creator>
    <dc:date>2024-03-02T08:23:47Z</dc:date>
    <item>
      <title>Integral of a Desirability Function</title>
      <link>https://community.jmp.com/t5/Discussions/Integral-of-a-Desirability-Function/m-p/725308#M90955</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I try to perform an optimization in the profiler, but instead of just searching for the highest desirability in the design space I'm actually looking for the maximal surface under the desirability curve. The desirability is a function of x, y and z, and these 3 parameters are also interacting with each other.&lt;/P&gt;&lt;P&gt;I found this post:&amp;nbsp;&lt;A href="https://community.jmp.com/t5/Discussions/How-can-I-calculate-area-under-the-curve-in-jmp-pro/td-p/314792" target="_self"&gt;https://community.jmp.com/t5/Discussions/How-can-I-calculate-area-under-the-curve-in-jmp-pro/td-p/314792&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So I used in integrate function to get the area under the curve for x (I want to do the same for y and z)&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Integrate( :Desirability 3, :"x"n, 35000, 95000 )&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Afterwards I plotted both, the original desirability function and the integral function. However, both functions show the same profile in the profiler.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Marco__0-1708712067148.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/61448i6C0B0B92B3FBA637/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Marco__0-1708712067148.png" alt="Marco__0-1708712067148.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone have an idea, why this is the case? I'm also open for any other solutions, to get the integral as an interactive function.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Feb 2024 18:21:05 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Integral-of-a-Desirability-Function/m-p/725308#M90955</guid>
      <dc:creator>Marco_</dc:creator>
      <dc:date>2024-02-23T18:21:05Z</dc:date>
    </item>
    <item>
      <title>Re: Integral of a Desirability Function</title>
      <link>https://community.jmp.com/t5/Discussions/Integral-of-a-Desirability-Function/m-p/725338#M90964</link>
      <description>&lt;P&gt;Integrate needs an expression as first argument.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, instead of using the Desirability &lt;STRONG&gt;column&lt;/STRONG&gt;, use the column formula of the desirability column.&lt;/P&gt;&lt;P&gt;The Desirability equation will looks like this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_0-1708787680104.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/61459i843C9E55D25928BD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_0-1708787680104.png" alt="hogi_0-1708787680104.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;here &lt;FONT face="courier new,courier"&gt;Disso&lt;/FONT&gt;&amp;nbsp;is the predicted result Disso= f(x,y,z).&lt;/P&gt;&lt;P&gt;To get an equation depending on your input values f(x,y,z), you have to replace this &lt;STRONG&gt;Symbol&lt;/STRONG&gt; with the prediction &lt;STRONG&gt;&lt;EM&gt;equation&lt;/EM&gt; &lt;/STRONG&gt;- i.e. the column formula of the &lt;FONT face="courier new,courier"&gt;Disso&lt;/FONT&gt; column.&lt;/P&gt;</description>
      <pubDate>Sat, 24 Feb 2024 15:19:48 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Integral-of-a-Desirability-Function/m-p/725338#M90964</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2024-02-24T15:19:48Z</dc:date>
    </item>
    <item>
      <title>Re: Integral of a Desirability Function</title>
      <link>https://community.jmp.com/t5/Discussions/Integral-of-a-Desirability-Function/m-p/725362#M90970</link>
      <description>&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/26800"&gt;@hogi&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks a lot for your advice. However, it does not work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I thought it might be easier to illustrate the problem with a real example. Therefore I have created a JMP file (attached) where I have a polynomial model y which is afunction of x1, x2 and x3. I have created a desirability function and replaced "y" with the model equation (analog to the comment)&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/26800"&gt;@hogi&lt;/a&gt;&amp;nbsp;wrote:&lt;P&gt;To get an equation depending on your input values f(x,y,z), you have to replace this &lt;STRONG&gt;Symbol&lt;/STRONG&gt; with the prediction &lt;STRONG&gt;&lt;EM&gt;equation&lt;/EM&gt; &lt;/STRONG&gt;- i.e. the column formula of the &lt;FONT face="courier new,courier"&gt;Disso&lt;/FONT&gt; column.&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;From there I used the integrate function, to integrate x1 from -1 to +1.&lt;/P&gt;&lt;P&gt;I got the same result as before, the profile from the desirability function and the integral are identical.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Marco__0-1708949403714.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/61470iB3CDDD1455C71EB5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Marco__0-1708949403714.png" alt="Marco__0-1708949403714.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Feb 2024 12:13:02 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Integral-of-a-Desirability-Function/m-p/725362#M90970</guid>
      <dc:creator>Marco_</dc:creator>
      <dc:date>2024-02-26T12:13:02Z</dc:date>
    </item>
    <item>
      <title>Re: Integral of a Desirability Function</title>
      <link>https://community.jmp.com/t5/Discussions/Integral-of-a-Desirability-Function/m-p/728957#M91110</link>
      <description>&lt;P&gt;&lt;SPAN class=""&gt;Does anyone have an idea what could cause the problem or any other solution?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Feb 2024 14:50:39 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Integral-of-a-Desirability-Function/m-p/728957#M91110</guid>
      <dc:creator>Marco_</dc:creator>
      <dc:date>2024-02-29T14:50:39Z</dc:date>
    </item>
    <item>
      <title>Re: Integral of a Desirability Function</title>
      <link>https://community.jmp.com/t5/Discussions/Integral-of-a-Desirability-Function/m-p/729264#M91159</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/30270"&gt;@Marco_&lt;/a&gt;&amp;nbsp;, could you explain in more detail which values you want to vary and which values you want to integrate?&lt;BR /&gt;I wonder about the integral. Maybe better average?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also - will the integral/average be over the whole range or just a small region around a central value x1c +/- sigma?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regarding integral in general - according to the scripting index, the second argument should be a variable.&lt;BR /&gt;So I was wondering if it is at all possible to put a column name there:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Integrate(:x1, :x1, -1, 1)&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_3-1709367248910.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/61741i964A79110D64DE60/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_3-1709367248910.png" alt="hogi_3-1709367248910.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Not really:&amp;nbsp;Jmp &lt;STRONG&gt;first&lt;/STRONG&gt; replaces x1 in the first argument with the entry of column :x1 - and &lt;STRONG&gt;then&lt;/STRONG&gt; uses this constant numeric value for &lt;FONT face="courier new,courier"&gt;Integrate&lt;/FONT&gt;, so&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Integrate(:x1,:x1,-1,1) = :x1 * Integrate(1,:x1,-1,1)= 2 :x1&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;[along this line: If there is no value in column :x1, the result is undefined.]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Same finding for the profiler:&lt;BR /&gt;- Jmp provides a slider for :x1 - despite the Integral.&lt;/P&gt;&lt;P&gt;- the result is not 0, but&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;FONT face="courier new,courier"&gt;2&amp;nbsp;x1&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_2-1709366388791.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/61740i45897925F62725C5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_2-1709366388791.png" alt="hogi_2-1709366388791.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;This fits to your findings: &lt;FONT face="courier new,courier"&gt;Integral = 2 x Expanded Desirability.&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;As a solution, let's follow the scripting index and use a variable (z):&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_0-1709308671256.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/61709i3781586591D50075/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_0-1709308671256.png" alt="hogi_0-1709308671256.png" /&gt;&lt;/span&gt;&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="hogi_1-1709308725719.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/61710i6CEB280F101FCDD5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_1-1709308725719.png" alt="hogi_1-1709308725719.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you generate a profiler plot for &lt;FONT face="courier new,courier"&gt;Integral&lt;/FONT&gt;, Jmp just displays sliders for x2 and x3 and calculates the integral over z (old :x1):&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="prediction_profiler.gif" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/61711i9E78E506F263D4CE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="prediction_profiler.gif" alt="prediction_profiler.gif" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 02 Mar 2024 08:23:47 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Integral-of-a-Desirability-Function/m-p/729264#M91159</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2024-03-02T08:23:47Z</dc:date>
    </item>
  </channel>
</rss>

