<?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: Something Like Solver with Nonlinear? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Something-Like-Solver-with-Nonlinear/m-p/430475#M68018</link>
    <description>&lt;P&gt;Please see this section of JMP Help about &lt;A href="https://www.jmp.com/support/help/en/16.1/#page/jmp/example-of-the-nonlinear-platform.shtml" target="_self"&gt;custom non-linear models&lt;/A&gt;.&lt;/P&gt;</description>
    <pubDate>Tue, 26 Oct 2021 15:20:54 GMT</pubDate>
    <dc:creator>Mark_Bailey</dc:creator>
    <dc:date>2021-10-26T15:20:54Z</dc:date>
    <item>
      <title>Something Like Solver with Nonlinear?</title>
      <link>https://community.jmp.com/t5/Discussions/Something-Like-Solver-with-Nonlinear/m-p/251527#M49392</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Love this stuff. But having a problem using JMP to solve a problem that I currently do in Excel.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Picture is attached. I have an analytical measurement of volume % of a given particle size on each row. I need to convert each row into a particle count for some other calculations, so I made a model that assigns a particle count to each particle size, and then let Solver make the model predicted volume % match the analytically measured volume %.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;In Excel, I assign a "Model n" count of 100000 units in each row, and calculate the volume of those particles in the row. Then&amp;nbsp;I calculate the total volume at the bottom of the spreadsheet, so I can calculate a model volume % in each row.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Next, I calculate the squared error of the (model - analytical) volume percentage in that row, and&amp;nbsp;sum the squares of the error for the entire model.&amp;nbsp; I have Solver minimize this SSE by changing the number of units in each row. Additionally, I constrain the number of units to be greater than or equal to zero.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It fits relatively quickly, and I save the unit counts in each row for further calculation.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So, I've done non-linear fits with different models before, but never one that required both a fit at the row level and as an overall model level. You can't just fit a row individually, as the volume % changes as the other rows change. I don't quite understand how to feed it a parameter for each row, and then solve all the parameters to fit the model, and finally dump the parameters for each row.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Would love to have help on this one. I've banged my head against the wall for some time, but haven't seen the right solution. I will then be applying this to about 1000 samples afterwards....&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;Thanks in advance! Fred&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="Annotation 2020-03-10 104008.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/22275i2E908647EF4214DB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Annotation 2020-03-10 104008.png" alt="Annotation 2020-03-10 104008.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 00:16:23 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Something-Like-Solver-with-Nonlinear/m-p/251527#M49392</guid>
      <dc:creator>FJMoesler</dc:creator>
      <dc:date>2023-06-09T00:16:23Z</dc:date>
    </item>
    <item>
      <title>Re: Something Like Solver with Nonlinear?</title>
      <link>https://community.jmp.com/t5/Discussions/Something-Like-Solver-with-Nonlinear/m-p/251561#M49400</link>
      <description>&lt;P&gt;Can you express the relationship analytically? You could use the expression in a column formula as a custom model Nonlinear platform. The default loss function is least squared error.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you show a plot of the data?&lt;/P&gt;</description>
      <pubDate>Tue, 10 Mar 2020 16:19:37 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Something-Like-Solver-with-Nonlinear/m-p/251561#M49400</guid>
      <dc:creator>Mark_Bailey</dc:creator>
      <dc:date>2020-03-10T16:19:37Z</dc:date>
    </item>
    <item>
      <title>Re: Something Like Solver with Nonlinear?</title>
      <link>https://community.jmp.com/t5/Discussions/Something-Like-Solver-with-Nonlinear/m-p/251627#M49402</link>
      <description>&lt;P&gt;I don't really know if I can turn this into something analytical. The data is not evenly spaced (due to the machine) and logarithmic, and the distributions vary widely. I originally tried to make an analytical function, but came up with strange fits, likely indicating my model wasn't (or couldn't be) well defined. I also found some articles on this instrument indicating that direct translation wasn't possible, but I don't know that they ever tried this method.&lt;BR /&gt;&lt;BR /&gt;This "count simulation" route worked well for me in Excel, but I think JMP should be able to do the same in a much more efficient fashion. Esp. if I have to process thousands of runs. I could code it in VBA with Excel, but I would rather use the right tool.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've attached one example of a distribution that I would try to match, but like I said, they vary widely.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Annotation 2020-03-10 131810.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/37016i01EB59AF0F1E88C1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Annotation 2020-03-10 131810.png" alt="Annotation 2020-03-10 131810.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Oct 2021 19:16:27 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Something-Like-Solver-with-Nonlinear/m-p/251627#M49402</guid>
      <dc:creator>FJMoesler</dc:creator>
      <dc:date>2021-10-26T19:16:27Z</dc:date>
    </item>
    <item>
      <title>Re: Something Like Solver with Nonlinear?</title>
      <link>https://community.jmp.com/t5/Discussions/Something-Like-Solver-with-Nonlinear/m-p/251644#M49407</link>
      <description>&lt;P&gt;You might try a different approach with JMP. Please follow these steps:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Select &lt;STRONG&gt;Analyze &amp;gt; Reliability and Survival &amp;gt; Life Distribution&lt;/STRONG&gt;.&lt;/LI&gt;
&lt;LI&gt;Select the &lt;STRONG&gt;Volume %&lt;/STRONG&gt; column and click &lt;STRONG&gt;Y, Time to Event&lt;/STRONG&gt;.&lt;/LI&gt;
&lt;LI&gt;Click &lt;STRONG&gt;OK&lt;/STRONG&gt;.&lt;/LI&gt;
&lt;LI&gt;Click the red triangle at the top and select &lt;STRONG&gt;Fit Mixture&lt;/STRONG&gt;.&lt;/LI&gt;
&lt;LI&gt;Type &lt;STRONG&gt;4&lt;/STRONG&gt; in the &lt;STRONG&gt;Quantity&lt;/STRONG&gt; box next to &lt;STRONG&gt;Normal&lt;/STRONG&gt;.&lt;/LI&gt;
&lt;LI&gt;Select &lt;STRONG&gt;Separable Clusters&lt;/STRONG&gt; for the Starting Value Method.&lt;/LI&gt;
&lt;LI&gt;Click &lt;STRONG&gt;Go&lt;/STRONG&gt;.&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Does this approach look promising?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please see this content in &lt;A href="https://www.jmp.com/support/help/en/15.1/?os=win&amp;amp;source=application#page/jmp/mixture-2.shtml#ww1563816" target="_self"&gt;JMP Help&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Mar 2020 18:34:20 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Something-Like-Solver-with-Nonlinear/m-p/251644#M49407</guid>
      <dc:creator>Mark_Bailey</dc:creator>
      <dc:date>2020-03-10T18:34:20Z</dc:date>
    </item>
    <item>
      <title>Re: Something Like Solver with Nonlinear?</title>
      <link>https://community.jmp.com/t5/Discussions/Something-Like-Solver-with-Nonlinear/m-p/251795#M49449</link>
      <description>&lt;P&gt;I tried the Life Distribution analysis, but I really don't understand quite how it helps me. Can you help me on the approach?&lt;BR /&gt;&lt;BR /&gt;Ultimately, I need to get a count for each bucket of particle size. My best approach is to simulate the particle count (on each row) to make my model's volume %'s match the measured volume %'s. So, basically I'll have 124 parameters, limited to being greater than or equal to zero, that will have to be varied to fit the curve. The use of volume % instead of volume forces the objective solver to have to vary all of the parameters at once, not just one at a time (I think), since it needs the total volume of the set to calculate the volume %.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Not sure if this clarifies the question, but it seems like something JMP should be capable of.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Mar 2020 15:54:01 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Something-Like-Solver-with-Nonlinear/m-p/251795#M49449</guid>
      <dc:creator>FJMoesler</dc:creator>
      <dc:date>2020-03-11T15:54:01Z</dc:date>
    </item>
    <item>
      <title>Re: Something Like Solver with Nonlinear?</title>
      <link>https://community.jmp.com/t5/Discussions/Something-Like-Solver-with-Nonlinear/m-p/251855#M49457</link>
      <description>&lt;P&gt;Your example looked like some kind of spectrum with four peaks (two overlapping) so I thought that you want to fit them.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You might look at the Minimize function in Help &amp;gt; Scripting Index &amp;gt; Functions. You would have to use it in a column formula or a script with set up for the arguments.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Mar 2020 18:56:49 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Something-Like-Solver-with-Nonlinear/m-p/251855#M49457</guid>
      <dc:creator>Mark_Bailey</dc:creator>
      <dc:date>2020-03-11T18:56:49Z</dc:date>
    </item>
    <item>
      <title>Re: Something Like Solver with Nonlinear?</title>
      <link>https://community.jmp.com/t5/Discussions/Something-Like-Solver-with-Nonlinear/m-p/430289#M68003</link>
      <description>&lt;P&gt;Hi Mark,&lt;/P&gt;&lt;P&gt;I'm also interested in the question about an iterative solver in JMP.&amp;nbsp; The context is a rheology model that follows a power law in the high-flow regime, with an additive term bounding the low-flow limit.&amp;nbsp; The best I can do in JMP is to use a quadratic model in shear rate -- looks about right graphically, but is non-physical.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the best I can do in JMP using log transforms in "Fit Model" (quadratic in gamma, with a cross term interaction between gamma and beta):&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pmort_1-1635205828756.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/37000i264CCF51557F7930/image-size/medium?v=v2&amp;amp;px=400" role="button" title="pmort_1-1635205828756.png" alt="pmort_1-1635205828756.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Here is the preferred form derived using Solver in Excel -- gets rid of the quadratic dependence, and captures the regime shift in gamma:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pmort_2-1635205884643.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/37001i63C47E80786F56A3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="pmort_2-1635205884643.png" alt="pmort_2-1635205884643.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Do you know how I can set up the mixed model in JMP to solve for alpha(i), a, b, and c?&amp;nbsp; Note that U*, alpha, gamma, and beta are all dimensionless parameters.&amp;nbsp; Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Oct 2021 23:56:37 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Something-Like-Solver-with-Nonlinear/m-p/430289#M68003</guid>
      <dc:creator>pmort</dc:creator>
      <dc:date>2021-10-25T23:56:37Z</dc:date>
    </item>
    <item>
      <title>Re: Something Like Solver with Nonlinear?</title>
      <link>https://community.jmp.com/t5/Discussions/Something-Like-Solver-with-Nonlinear/m-p/430475#M68018</link>
      <description>&lt;P&gt;Please see this section of JMP Help about &lt;A href="https://www.jmp.com/support/help/en/16.1/#page/jmp/example-of-the-nonlinear-platform.shtml" target="_self"&gt;custom non-linear models&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Oct 2021 15:20:54 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Something-Like-Solver-with-Nonlinear/m-p/430475#M68018</guid>
      <dc:creator>Mark_Bailey</dc:creator>
      <dc:date>2021-10-26T15:20:54Z</dc:date>
    </item>
  </channel>
</rss>

