<?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: Mixture problem - linear programming in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Mixture-problem-linear-programming/m-p/235481#M46472</link>
    <description>&lt;P&gt;I have an idea.&amp;nbsp; Create formula column that counts the number of active componenents for each mixture.&amp;nbsp; I did one for the Yarn Elongation sample data like this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;If( :Name( "ethylene (x1)" ) == 0,
	0,
	1
) + If( :Name( "styrene (x2)" ) == 0,
	0,
	1
) + If( :Name( "propylene (x3)" ) == 0,
	0,
	1
)&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Then, do the optimization in Graph &amp;gt; Profiler.&amp;nbsp; Include the prediction formula from your model and the formula column you just created in the "Y, Prediction Formula" input.&amp;nbsp; Set the desirabilities for your functions from the Optimization and Desirability menu.&amp;nbsp; For the Yarn Elongation data, I&amp;nbsp; set a desirability function to target 1 active component like this:&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Desirability.png" style="width: 410px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/20376iE12F97F3B78482E6/image-size/large?v=v2&amp;amp;px=999" role="button" title="Desirability.png" alt="Desirability.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;In the end, I was able to get this result from the optimization with the constraint of no more than 1 active component:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Yarn Optimization.PNG" style="width: 709px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/20377i207A58E725ECECAC/image-size/large?v=v2&amp;amp;px=999" role="button" title="Yarn Optimization.PNG" alt="Yarn Optimization.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I attached the data set I used to illustrate with scripts to reproduce these results.&lt;/P&gt;</description>
    <pubDate>Tue, 19 Nov 2019 17:38:33 GMT</pubDate>
    <dc:creator>cwillden</dc:creator>
    <dc:date>2019-11-19T17:38:33Z</dc:date>
    <item>
      <title>Mixture problem - linear programming</title>
      <link>https://community.jmp.com/t5/Discussions/Mixture-problem-linear-programming/m-p/234285#M46461</link>
      <description>&lt;P&gt;Dear All, I have a question concerning linear programming in JMP. The problem how I can set up a model for finding the optimum mixture with a constrain. I have let say 5 materials (A, B, C, D, E) for selection and each material has 2 properties. (p1, p2). So I have A(p1,p2), B(p1,p2), … My goal is to find the best mixture (a.A +b.B + c.C + d.D +e.E ) where (a, b, c, d, e) are the amounts of the given materials to match my wanted 2 properties (wp1, wp2). The constraint is now that I only want to use 2 materials for the mixture, or maximum 3 materials. It’s quite easy to solve this problem with Oracle Crystal Ball in Excel via Monte Carlo method, but I couldn’t set up this in JMP. Thank you Heinrich.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Nov 2019 06:54:29 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Mixture-problem-linear-programming/m-p/234285#M46461</guid>
      <dc:creator>Heinrich</dc:creator>
      <dc:date>2019-11-19T06:54:29Z</dc:date>
    </item>
    <item>
      <title>Re: Mixture problem - linear programming</title>
      <link>https://community.jmp.com/t5/Discussions/Mixture-problem-linear-programming/m-p/235481#M46472</link>
      <description>&lt;P&gt;I have an idea.&amp;nbsp; Create formula column that counts the number of active componenents for each mixture.&amp;nbsp; I did one for the Yarn Elongation sample data like this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;If( :Name( "ethylene (x1)" ) == 0,
	0,
	1
) + If( :Name( "styrene (x2)" ) == 0,
	0,
	1
) + If( :Name( "propylene (x3)" ) == 0,
	0,
	1
)&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Then, do the optimization in Graph &amp;gt; Profiler.&amp;nbsp; Include the prediction formula from your model and the formula column you just created in the "Y, Prediction Formula" input.&amp;nbsp; Set the desirabilities for your functions from the Optimization and Desirability menu.&amp;nbsp; For the Yarn Elongation data, I&amp;nbsp; set a desirability function to target 1 active component like this:&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Desirability.png" style="width: 410px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/20376iE12F97F3B78482E6/image-size/large?v=v2&amp;amp;px=999" role="button" title="Desirability.png" alt="Desirability.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;In the end, I was able to get this result from the optimization with the constraint of no more than 1 active component:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Yarn Optimization.PNG" style="width: 709px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/20377i207A58E725ECECAC/image-size/large?v=v2&amp;amp;px=999" role="button" title="Yarn Optimization.PNG" alt="Yarn Optimization.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I attached the data set I used to illustrate with scripts to reproduce these results.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Nov 2019 17:38:33 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Mixture-problem-linear-programming/m-p/235481#M46472</guid>
      <dc:creator>cwillden</dc:creator>
      <dc:date>2019-11-19T17:38:33Z</dc:date>
    </item>
    <item>
      <title>Re: Mixture problem - linear programming</title>
      <link>https://community.jmp.com/t5/Discussions/Mixture-problem-linear-programming/m-p/235893#M46526</link>
      <description>&lt;P&gt;Thanks it was a successful approach to my problem. It's a rather complicated way - JMP is probably not the software for these kinds of problems.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Nov 2019 07:57:08 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Mixture-problem-linear-programming/m-p/235893#M46526</guid>
      <dc:creator>Heinrich</dc:creator>
      <dc:date>2019-11-21T07:57:08Z</dc:date>
    </item>
  </channel>
</rss>

