<?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: how do I find the minimizer  value in non linear optimization problem? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/how-do-I-find-the-minimizer-value-in-non-linear-optimization/m-p/594482#M170797</link>
    <description>&lt;P&gt;To find the descent direction from the initial point, you need to fix the values of the variables and then take the negative gradient.&amp;nbsp; To find the best step size alpha in that direction, you can solve an auxiliary one-variable problem.&amp;nbsp; The following code implements these ideas, where I have renamed the original variables x[1], x[2], and x[3].&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE style="background-color: #eaeaea; border-image-outset: 0; border-image-repeat: stretch; border-image-slice: 100%; border-image-source: none; border-image-width: 1; color: #333333; font-family: &amp;amp;quot; helevticaneue-light&amp;amp;quot;,&amp;amp;quot;helvetica neue&amp;amp;quot;,helvetica,arial,sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; overflow-x: scroll; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: pre; word-spacing: 0px; word-wrap: normal; padding: 5px; margin: 0px 10px 10px 10px; border: 1px dotted #999999;"&gt;&lt;CODE class=" language-sas" style="font-style: normal; font-weight: 400;"&gt;proc optmodel;
   num n = 3;
   var x {1..n} init 1;
   min f = 4*(x[1]^2+x[2]-x[3])^2 + 10;
   fix x;
   solve; 
   print x x.dual;

   num p {1..n};
   for {j in 1..n} p[j] = -x[j].dual;
   var alpha &amp;gt;= 0;
   min g = 4*((x[1]+alpha*p[1])^2+(x[2]+alpha*p[2])-(x[3]+alpha*p[3]))^2 + 10;
   solve; 
   print alpha;
quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 07 Oct 2019 15:40:18 GMT</pubDate>
    <dc:creator>RobPratt</dc:creator>
    <dc:date>2019-10-07T15:40:18Z</dc:date>
    <item>
      <title>how do I find the minimizer  value in non linear optimization problem?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-do-I-find-the-minimizer-value-in-non-linear-optimization/m-p/594373#M170754</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am trying to solve the following question&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.JPG" style="width: 541px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/32993i5D90BBCD59E098D1/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.JPG" alt="Capture.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have written the following code for this&lt;/P&gt;&lt;PRE&gt;proc optmodel;
var x, y,z;
min f = 4*(x^2+y-z)^2 + 10;
/* starting point */
   x = 1;
   y = 1;
   z=1;
solve; 
print x y z x.dual y.dual z.dual;
quit;&lt;/PRE&gt;&lt;P&gt;Now if P is the descent direction of f at Xo then&lt;/P&gt;&lt;P&gt;I need to find the minimizer Aplha for this problem&lt;/P&gt;&lt;P&gt;I mean to say that I am trying to solve this question:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.JPG" style="width: 452px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/32994i13C67EB7C740227E/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.JPG" alt="Capture.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I dont see Alpha in the output.&lt;/P&gt;&lt;P&gt;Please can someone help me find the value of Alpha which is the minimizer&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;</description>
      <pubDate>Sun, 06 Oct 2019 21:53:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-do-I-find-the-minimizer-value-in-non-linear-optimization/m-p/594373#M170754</guid>
      <dc:creator>rohailk</dc:creator>
      <dc:date>2019-10-06T21:53:00Z</dc:date>
    </item>
    <item>
      <title>Re: how do I find the minimizer  value in non linear optimization problem?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-do-I-find-the-minimizer-value-in-non-linear-optimization/m-p/594448#M170780</link>
      <description>&lt;P&gt;Post it at OR forum .&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/1636"&gt;@RobPratt&lt;/a&gt;&amp;nbsp; is there .&lt;/P&gt;</description>
      <pubDate>Mon, 07 Oct 2019 11:34:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-do-I-find-the-minimizer-value-in-non-linear-optimization/m-p/594448#M170780</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2019-10-07T11:34:47Z</dc:date>
    </item>
    <item>
      <title>Re: how do I find the minimizer  value in non linear optimization problem?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-do-I-find-the-minimizer-value-in-non-linear-optimization/m-p/594482#M170797</link>
      <description>&lt;P&gt;To find the descent direction from the initial point, you need to fix the values of the variables and then take the negative gradient.&amp;nbsp; To find the best step size alpha in that direction, you can solve an auxiliary one-variable problem.&amp;nbsp; The following code implements these ideas, where I have renamed the original variables x[1], x[2], and x[3].&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE style="background-color: #eaeaea; border-image-outset: 0; border-image-repeat: stretch; border-image-slice: 100%; border-image-source: none; border-image-width: 1; color: #333333; font-family: &amp;amp;quot; helevticaneue-light&amp;amp;quot;,&amp;amp;quot;helvetica neue&amp;amp;quot;,helvetica,arial,sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; overflow-x: scroll; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: pre; word-spacing: 0px; word-wrap: normal; padding: 5px; margin: 0px 10px 10px 10px; border: 1px dotted #999999;"&gt;&lt;CODE class=" language-sas" style="font-style: normal; font-weight: 400;"&gt;proc optmodel;
   num n = 3;
   var x {1..n} init 1;
   min f = 4*(x[1]^2+x[2]-x[3])^2 + 10;
   fix x;
   solve; 
   print x x.dual;

   num p {1..n};
   for {j in 1..n} p[j] = -x[j].dual;
   var alpha &amp;gt;= 0;
   min g = 4*((x[1]+alpha*p[1])^2+(x[2]+alpha*p[2])-(x[3]+alpha*p[3]))^2 + 10;
   solve; 
   print alpha;
quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Oct 2019 15:40:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-do-I-find-the-minimizer-value-in-non-linear-optimization/m-p/594482#M170797</guid>
      <dc:creator>RobPratt</dc:creator>
      <dc:date>2019-10-07T15:40:18Z</dc:date>
    </item>
    <item>
      <title>One more question please Re: how do I find the minimizer  value in non linear optimization problem?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-do-I-find-the-minimizer-value-in-non-linear-optimization/m-p/594618#M170871</link>
      <description>&lt;P&gt;thank you so much for your answer&amp;nbsp;&lt;SPAN&gt;.&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://communities.sas.com/t5/user/viewprofilepage/user-id/1636" target="_blank" rel="noopener"&gt;@RobPratt&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Just one more question.I am trying to re write your program for the following problem.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.JPG" style="width: 519px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/33002i3917DA5735099A41/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.JPG" alt="Capture.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;PRE&gt; min f = (x[1]-2)**4 + (x[1]-2*x[2])**2;&lt;/PRE&gt;&lt;P&gt;Sorry I am new to sas .Please can you help me write the same code as that in your answer for this new problem to calculate alpha.I tried but each time I tried I got alpah=0 and a an error message also&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 08 Oct 2019 05:10:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-do-I-find-the-minimizer-value-in-non-linear-optimization/m-p/594618#M170871</guid>
      <dc:creator>rohailk</dc:creator>
      <dc:date>2019-10-08T05:10:11Z</dc:date>
    </item>
    <item>
      <title>Re: One more question please Re: how do I find the minimizer  value in non linear optimization probl</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-do-I-find-the-minimizer-value-in-non-linear-optimization/m-p/595748#M171463</link>
      <description>&lt;P&gt;Here's how I would do it:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc optmodel;
   num n = 2;
   var x {1..n};
   min f = (x[1]-2)**4 + (x[1]-2*x[2])**2;
   fix x[1] = 0;
   fix x[2] = 3;
   solve; 
   print x x.dual;

   num p {1..n};
   for {j in 1..n} p[j] = -x[j].dual;
   var alpha &amp;gt;= 0;
   min g = (x[1]+alpha*p[1]-2)**4 + (x[1]+alpha*p[1]-2*(x[2]+alpha*p[2]))**2;
   solve;
   print alpha;
quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 11 Oct 2019 14:32:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-do-I-find-the-minimizer-value-in-non-linear-optimization/m-p/595748#M171463</guid>
      <dc:creator>RobPratt</dc:creator>
      <dc:date>2019-10-11T14:32:02Z</dc:date>
    </item>
    <item>
      <title>Re: One more question please Re: how do I find the minimizer  value in non linear optimization probl</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-do-I-find-the-minimizer-value-in-non-linear-optimization/m-p/595840#M171487</link>
      <description>&lt;P&gt;thank you so much&lt;/P&gt;</description>
      <pubDate>Fri, 11 Oct 2019 17:46:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-do-I-find-the-minimizer-value-in-non-linear-optimization/m-p/595840#M171487</guid>
      <dc:creator>rohailk</dc:creator>
      <dc:date>2019-10-11T17:46:23Z</dc:date>
    </item>
  </channel>
</rss>

