<?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 MKL 10.2 Update 1 Optimization Solver in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-10-2-Update-1-Optimization-Solver/m-p/775282#M941</link>
    <description>Hi, &lt;BR /&gt;&lt;BR /&gt;I am trying to optimize an exponential multivariable function using the TR solver (dtrnlsp_solve). I have been going over it for a week and the solver fails miserably. All I get everytime is "NaN" for the coefficients. The same problem is optimized in C# NI libraries.&lt;BR /&gt;&lt;BR /&gt;The function is sometime like F(x) = a0 + sum(ai*exp(-x/ti)) (i=1 to 6)&lt;BR /&gt;'ai' and 'ti' are my design variables. (Vector X)&lt;BR /&gt;&lt;BR /&gt;I understand it's difficult to gague without further details? Generally, any ideas of what's wrong? Is it normal for the solver to behave this way at times for certain equations? I have successfully used the solver for optimizing other equations.&lt;BR /&gt;&lt;BR /&gt;Also, I can't seem to find good examples for the central differences solver (DJACOBI_SOLVE). The one described in the manual is very limited and has a lot of errors. Can anyone point me to certain examples using the central differences solver?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks, &lt;BR /&gt;Shriram&lt;BR /&gt;--&lt;BR /&gt;Mechanica Engineer - FEA Development&lt;BR /&gt;Moore Nanotechnology Systems&lt;BR /&gt;Swanzey, NH - 03431</description>
    <pubDate>Thu, 22 Jul 2010 15:25:00 GMT</pubDate>
    <dc:creator>shriisall</dc:creator>
    <dc:date>2010-07-22T15:25:00Z</dc:date>
    <item>
      <title>MKL 10.2 Update 1 Optimization Solver</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-10-2-Update-1-Optimization-Solver/m-p/775282#M941</link>
      <description>Hi, &lt;BR /&gt;&lt;BR /&gt;I am trying to optimize an exponential multivariable function using the TR solver (dtrnlsp_solve). I have been going over it for a week and the solver fails miserably. All I get everytime is "NaN" for the coefficients. The same problem is optimized in C# NI libraries.&lt;BR /&gt;&lt;BR /&gt;The function is sometime like F(x) = a0 + sum(ai*exp(-x/ti)) (i=1 to 6)&lt;BR /&gt;'ai' and 'ti' are my design variables. (Vector X)&lt;BR /&gt;&lt;BR /&gt;I understand it's difficult to gague without further details? Generally, any ideas of what's wrong? Is it normal for the solver to behave this way at times for certain equations? I have successfully used the solver for optimizing other equations.&lt;BR /&gt;&lt;BR /&gt;Also, I can't seem to find good examples for the central differences solver (DJACOBI_SOLVE). The one described in the manual is very limited and has a lot of errors. Can anyone point me to certain examples using the central differences solver?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks, &lt;BR /&gt;Shriram&lt;BR /&gt;--&lt;BR /&gt;Mechanica Engineer - FEA Development&lt;BR /&gt;Moore Nanotechnology Systems&lt;BR /&gt;Swanzey, NH - 03431</description>
      <pubDate>Thu, 22 Jul 2010 15:25:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-10-2-Update-1-Optimization-Solver/m-p/775282#M941</guid>
      <dc:creator>shriisall</dc:creator>
      <dc:date>2010-07-22T15:25:00Z</dc:date>
    </item>
    <item>
      <title>MKL 10.2 Update 1 Optimization Solver</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-10-2-Update-1-Optimization-Solver/m-p/775283#M942</link>
      <description>Hi Shriram,&lt;BR /&gt;&lt;BR /&gt;As I understood, F(x) is not differentiableif t = 0. Moreover, if t approaches 0 then the objective function is unbounded. I would recommend changing aninitial point or using solver for problems with boundary constraints (where X &amp;gt; 0).&lt;BR /&gt;&lt;BR /&gt;Please let me know how it works. &lt;BR /&gt;&lt;BR /&gt;Thank you!&lt;BR /&gt;--Nikita</description>
      <pubDate>Fri, 23 Jul 2010 04:04:12 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-10-2-Update-1-Optimization-Solver/m-p/775283#M942</guid>
      <dc:creator>Nikita_S_Intel</dc:creator>
      <dc:date>2010-07-23T04:04:12Z</dc:date>
    </item>
    <item>
      <title>MKL 10.2 Update 1 Optimization Solver</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-10-2-Update-1-Optimization-Solver/m-p/775284#M943</link>
      <description>Hey Nikita, &lt;BR /&gt;&lt;BR /&gt;Thanks for the reply.&lt;BR /&gt;&lt;BR /&gt;I am not sure if the function should cause any problem. The same function is optimized very well using National Instruments curvefit library. That however uses the Leverberg-Marquardt algorithm and Intel uses the Trust-Region algorithm.&lt;BR /&gt;&lt;BR /&gt;- I am not sure what you mean by an unbounded function. As t nears zero, the exponential term nears 1 and the function returns a constant value. At t=0, the exponential terms are all equal to 1. The function values are still finite.&lt;BR /&gt;&lt;BR /&gt;- I was under the impression that the Trust-Region algorithm was a derivative free method. If t = 0, the function value is a constant and hence the derivative is zero.&lt;BR /&gt;&lt;BR /&gt;However, I tried assigning lower bounds and changing initial guesses, but with little or no success to the results. After certain iterations, the design variables and function values suddenly become "NaN". I can't understand this unexpected behavior.&lt;BR /&gt;&lt;BR /&gt;But, as you say, if I remove the data points which are equal to 0 or have very small values (like 1E-7, 1E-3) etc. then the solver does a much better job.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks again, &lt;BR /&gt;Shriram</description>
      <pubDate>Fri, 23 Jul 2010 15:17:36 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-10-2-Update-1-Optimization-Solver/m-p/775284#M943</guid>
      <dc:creator>shriisall</dc:creator>
      <dc:date>2010-07-23T15:17:36Z</dc:date>
    </item>
    <item>
      <title>MKL 10.2 Update 1 Optimization Solver</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-10-2-Update-1-Optimization-Solver/m-p/775285#M944</link>
      <description>&lt;P class="MsoNormal" style="margin: 0cm 0cm 10pt;"&gt;&lt;SPAN style="font-size: small;"&gt;&lt;SPAN lang="EN-US" style="mso-ansi-language: EN-US;"&gt;&lt;SPAN style="font-family: Calibri;"&gt;Hi Shriram,&lt;BR /&gt;&lt;BR /&gt;Actually, TR solvers are not &lt;SPAN style="color: #333333;"&gt;derivative free methods,&lt;SPAN style="mso-spacerun: yes;"&gt; &lt;/SPAN&gt;users objective function F(x) = y  f(x), where F(x): Rn -&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="color: #333333; mso-ansi-language: EN-US;"&gt;&lt;SPAN style="font-family: Calibri;"&gt;Rm, m&amp;gt;=nshould bea twice differentiable function in Rn. &lt;P&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="MsoNormal" style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN lang="EN-US" style="color: #333333; mso-ansi-language: EN-US;"&gt;&lt;SPAN style="font-size: small;"&gt;&lt;SPAN style="font-family: Calibri;"&gt;As of your function, it is unbounded, if t nears 0 and t &amp;lt; 0. &lt;SPAN style="mso-spacerun: yes;"&gt;&lt;/SPAN&gt;&lt;SPAN style="mso-spacerun: yes;"&gt;&lt;/SPAN&gt;Something likes that&lt;P&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="MsoNormal" style="margin: 0cm 0cm 0pt 35.4pt;"&gt;&lt;SPAN lang="EN-US" style="line-height: 115%; font-family: " courier="" new=""&gt;F(x) = 1.935444e+44, t = -1.000000e-02&lt;P&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="MsoNormal" style="margin: 0cm 0cm 0pt 35.4pt;"&gt;&lt;SPAN lang="EN-US" style="line-height: 115%; font-family: " courier="" new=""&gt;F(x) = 1.295015e+49, t = -9.000000e-03&lt;P&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="MsoNormal" style="margin: 0cm 0cm 0pt 35.4pt;"&gt;&lt;SPAN lang="EN-US" style="line-height: 115%; font-family: " courier="" new=""&gt;F(x) = 1.393615e+55, t = -8.000000e-03&lt;P&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="MsoNormal" style="margin: 0cm 0cm 0pt 35.4pt;"&gt;&lt;SPAN lang="EN-US" style="line-height: 115%; font-family: " courier="" new=""&gt;F(x) = 7.932340e+62, t = -7.000000e-03&lt;P&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="MsoNormal" style="margin: 0cm 0cm 0pt 35.4pt;"&gt;&lt;SPAN lang="EN-US" style="line-height: 115%; font-family: " courier="" new=""&gt;F(x) = 1.736785e+73, t = -6.000000e-03&lt;P&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="MsoNormal" style="margin: 0cm 0cm 0pt 35.4pt;"&gt;&lt;SPAN lang="EN-US" style="line-height: 115%; font-family: " courier="" new=""&gt;F(x) = 5.202701e+87, t = -5.000000e-03&lt;P&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="MsoNormal" style="margin: 0cm 0cm 0pt 35.4pt;"&gt;&lt;SPAN lang="EN-US" style="line-height: 115%; font-family: " courier="" new=""&gt;F(x) = 2.697447e+109, t = -4.000000e-03&lt;P&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="MsoNormal" style="margin: 0cm 0cm 0pt 35.4pt;"&gt;&lt;SPAN lang="EN-US" style="line-height: 115%; font-family: " courier="" new=""&gt;F(x) = 4.189477e+145, t = -3.000000e-03&lt;P&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="MsoNormal" style="margin: 0cm 0cm 0pt 35.4pt;"&gt;&lt;SPAN lang="EN-US" style="line-height: 115%; font-family: " courier="" new=""&gt;F(x) = 1.010586e+218, t = -2.000000e-03&lt;P&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="MsoNormal" style="margin: 0cm 0cm 0pt 35.4pt;"&gt;&lt;SPAN lang="EN-US" style="line-height: 115%; font-family: " courier="" new=""&gt;F(x) = inf, t = -1.000000e-03&lt;P&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="MsoNormal" style="margin: 0cm 0cm 0pt 35.4pt;"&gt;&lt;SPAN lang="EN-US" style="line-height: 115%; font-family: " courier="" new=""&gt;F(x) = 1.200000e+00, t = 0.000000e+00&lt;P&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="MsoNormal" style="margin: 0cm 0cm 0pt 35.4pt;"&gt;&lt;SPAN lang="EN-US" style="line-height: 115%; font-family: " courier="" new=""&gt;F(x) = 1.200000e+00, t = 1.000000e-03&lt;P&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="MsoNormal" style="margin: 0cm 0cm 0pt 35.4pt;"&gt;&lt;SPAN lang="EN-US" style="line-height: 115%; font-family: " courier="" new=""&gt;F(x) = 1.200000e+00, t = 2.000000e-03&lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="color: #333333; mso-ansi-language: EN-US;"&gt;&lt;P&gt;&lt;/P&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="MsoNormal" style="margin: 0cm 0cm 0pt;"&gt;&lt;SPAN lang="EN-US" style="color: #333333; mso-ansi-language: EN-US;"&gt;&lt;SPAN style="font-size: small;"&gt;&lt;SPAN style="font-family: Calibri;"&gt;Did try to use solver for problems with boundary constraints [ T &amp;gt; 0] and use initial point [ T &amp;gt; 0 ]?&lt;BR /&gt;&lt;BR /&gt;Thank you!&lt;BR /&gt;--Nikita&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Jul 2010 03:37:44 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-10-2-Update-1-Optimization-Solver/m-p/775285#M944</guid>
      <dc:creator>Nikita_S_Intel</dc:creator>
      <dc:date>2010-07-26T03:37:44Z</dc:date>
    </item>
    <item>
      <title>MKL 10.2 Update 1 Optimization Solver</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-10-2-Update-1-Optimization-Solver/m-p/775286#M945</link>
      <description>Oh ok. The domain of my design variables is all positive, so I didn't think about the solver attempting -ve design values. &lt;BR /&gt;&lt;BR /&gt;I think I had tried with lower bounds greater than 0, and still had the same problems. However, I will still make sure once again as what you say makes good sense.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks Nikita!&lt;BR /&gt;Shriram</description>
      <pubDate>Tue, 27 Jul 2010 16:49:20 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-10-2-Update-1-Optimization-Solver/m-p/775286#M945</guid>
      <dc:creator>shriisall</dc:creator>
      <dc:date>2010-07-27T16:49:20Z</dc:date>
    </item>
    <item>
      <title>MKL 10.2 Update 1 Optimization Solver</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-10-2-Update-1-Optimization-Solver/m-p/775287#M946</link>
      <description>Hey Nikita, &lt;BR /&gt;&lt;BR /&gt;I had a quick question. I can specify the lower and upper bounds and use the function 'dtrnlspbc_xxx' solver. &lt;BR /&gt;&lt;BR /&gt;However, I have no upper bound and I cannot set an arbitrary number. Is it possible to set a lower bound and have upper bound, unbounded? &lt;BR /&gt;&lt;BR /&gt;Thanks, &lt;BR /&gt;Shriram</description>
      <pubDate>Tue, 27 Jul 2010 21:11:59 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-10-2-Update-1-Optimization-Solver/m-p/775287#M946</guid>
      <dc:creator>shriisall</dc:creator>
      <dc:date>2010-07-27T21:11:59Z</dc:date>
    </item>
    <item>
      <title>MKL 10.2 Update 1 Optimization Solver</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-10-2-Update-1-Optimization-Solver/m-p/775288#M947</link>
      <description>Hi Shriram,&lt;DIV&gt;Thedtrnlspbc_xxx solver is the solver with boundaries so you need to put some upper boundaries conditions. Nevertheless you could put some boundary estimation that certainly greater than exact solution.&lt;/DIV&gt;&lt;DIV&gt;With best regards,&lt;/DIV&gt;&lt;DIV&gt;Alexander Kalinkin&lt;/DIV&gt;</description>
      <pubDate>Wed, 28 Jul 2010 02:17:12 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-10-2-Update-1-Optimization-Solver/m-p/775288#M947</guid>
      <dc:creator>Alexander_K_Intel2</dc:creator>
      <dc:date>2010-07-28T02:17:12Z</dc:date>
    </item>
    <item>
      <title>MKL 10.2 Update 1 Optimization Solver</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-10-2-Update-1-Optimization-Solver/m-p/775289#M948</link>
      <description>Hi Shriram,&lt;BR /&gt;&lt;BR /&gt;Or you can use max. value of double precision as upper bound. &lt;BR /&gt;&lt;BR /&gt;Thank you!&lt;BR /&gt;--Nikita</description>
      <pubDate>Wed, 28 Jul 2010 03:52:35 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-10-2-Update-1-Optimization-Solver/m-p/775289#M948</guid>
      <dc:creator>Nikita_S_Intel</dc:creator>
      <dc:date>2010-07-28T03:52:35Z</dc:date>
    </item>
    <item>
      <title>MKL 10.2 Update 1 Optimization Solver</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-10-2-Update-1-Optimization-Solver/m-p/775290#M949</link>
      <description>I have a similar problem. We are using the optimizer from C# code to minimize an error function; we are using the approximate jacobi calculator as well (although we are likely to switch to an analyic formula soon). The outcome is non-deterministic; most of the time, the optimization works well and converges to a reasonable answer that is repeatable, while at random other times, the optimizer's step algorithm fills the "x" array with NaN. This always occurs when the "RCI_Request" variable is set to 1, indicating that a function evaluation is requested; we have a NaN check in the function evaluation that realizes this and throws an exception whenever the array has a NaN in it - incidentally, whenever it has one NaN, it is entirely filled with NaN. We have checked that the function and jacobian evaluations that we pass into MKL have no NaNs. It seems that the step that the routine takes is sometimes filled with NaNs, but when it is not filled with NaN it is repeatable. Why would this happen?&lt;BR /&gt;&lt;BR /&gt;It is difficult to repeat it; sequential calls with the same input will complete the optimization smoothly or have the NaN in a random fashion. Is there a threading problem?&lt;BR /&gt;&lt;BR /&gt;It happens on different machines.&lt;BR /&gt;&lt;BR /&gt;We've noticed that it usually happens more regualrly in Release mode than in Debug mode.&lt;BR /&gt;&lt;BR /&gt;All of this has led us to suspect it was related to memory management, like the CLR's garbage collector, by Release mode optimizations performed by the compiler, or by Interop marshalling problems. I am not very familiar with all of these topics. We are pinning all 3 arrays ("x", "fec", and "fjac") as is necessary to send the arrays to MKL as pointers. In trying to fix the issue, I used GCHandle.Alloc (followed by GCHandle.Free at the end of the optimization call) to pin the arrays in another way, and it still fills the x array with NaN occasionally. I've also tried making a deep copy of the x array before function evaluations, also to no avail.&lt;BR /&gt;</description>
      <pubDate>Thu, 16 Aug 2012 20:09:48 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/MKL-10-2-Update-1-Optimization-Solver/m-p/775290#M949</guid>
      <dc:creator>michaelkinnally</dc:creator>
      <dc:date>2012-08-16T20:09:48Z</dc:date>
    </item>
  </channel>
</rss>

