<rss xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" version="2.0">
  <channel>
    <title>MaplePrimes - Newest Posts</title>
    <link>http://www.mapleprimes.com/posts</link>
    <language>en-us</language>
    <copyright>2012 Maplesoft, A Division of Waterloo Maple Inc.</copyright>
    <generator>Maplesoft Document System</generator>
    <lastBuildDate>Thu, 17 May 2012 08:55:02 GMT</lastBuildDate>
    <pubDate>Thu, 17 May 2012 08:55:02 GMT</pubDate>
    <itunes:subtitle />
    <itunes:summary />
    <description>The latest posts added to MaplePrimes</description>
    <image>
      <url>http://www.mapleprimes.com/images/mapleprimeswhite.jpg</url>
      <title>MaplePrimes - Newest Posts</title>
      <link>http://www.mapleprimes.com/posts</link>
    </image>
    <item>
      <title>Mini PowerTools</title>
      <link>http://www.mapleprimes.com/posts/134205-Mini-PowerTools?ref=Feed:MaplePrimes:New Posts</link>
      <itunes:summary>&lt;p&gt;&lt;a href="/view.aspx?sf=134205/437001/f2.JPG"&gt;&lt;img src="/thumbnail.ashx?file=/view.aspx?sf=134205/437001/f2.JPG" alt=""&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Example. One of thousands.&lt;br&gt;The function of two variables.&lt;br&gt;Individual works for &lt;em&gt;&lt;strong&gt;r&lt;/strong&gt;&lt;strong&gt;ussian&lt;/strong&gt;&lt;/em&gt; biology students.&lt;br&gt;I am interested in they reaction.&lt;br&gt;HTML: &lt;a href="/ViewTemp.ashx?f=1680_1337040626/01.zip"&gt;01.zip&lt;/a&gt;&amp;nbsp;&lt;a href="/ViewTemp.ashx?f=1680_1337040626/08.zip"&gt;08.zip&lt;/a&gt;&lt;br&gt;Maple: </itunes:summary>
      <description>&lt;p&gt;&lt;a href="/view.aspx?sf=134205/437001/f2.JPG"&gt;&lt;img src="/thumbnail.ashx?file=/view.aspx?sf=134205/437001/f2.JPG" alt=""&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Example. One of thousands.&lt;br&gt;The function of two variables.&lt;br&gt;Individual works for &lt;em&gt;&lt;strong&gt;r&lt;/strong&gt;&lt;strong&gt;ussian&lt;/strong&gt;&lt;/em&gt; biology students.&lt;br&gt;I am interested in they reaction.&lt;br&gt;HTML: &lt;a href="/ViewTemp.ashx?f=1680_1337040626/01.zip"&gt;01.zip&lt;/a&gt;&amp;nbsp;&lt;a href="/ViewTemp.ashx?f=1680_1337040626/08.zip"&gt;08.zip&lt;/a&gt;&lt;br&gt;Maple: </description>
      <guid>134205</guid>
      <pubDate>Tue, 15 May 2012 00:06:38 Z</pubDate>
      <itunes:author>Valery Cyboulko</itunes:author>
      <author>Valery Cyboulko</author>
    </item>
    <item>
      <title>Teaching Concepts with Maple</title>
      <link>http://www.mapleprimes.com/maplesoftblog/134197-Teaching-Concepts-With-Maple?ref=Feed:MaplePrimes:New Posts</link>
      <itunes:summary>&lt;p&gt;Being easy to use is nice, but being easy to learn with is better. Maple&amp;rsquo;s ease-of-use paradigm, captured in the phrases &amp;ldquo;Clickable Calculus&amp;rdquo; and &amp;ldquo;&lt;a href="http://www.maplesoft.com/products/maple/new_features/clickablemath.aspx"&gt;Clickable Math&lt;/a&gt;&amp;rdquo; provides a syntax-free way to use Maple. The learning curve is flattened. But making Maple easy to use to use badly in the classroom helps neither student nor instructor.&lt;/p&gt;
&lt;p&gt;In the mid to late &amp;lsquo;80s,...</itunes:summary>
      <description>&lt;p&gt;Being easy to use is nice, but being easy to learn with is better. Maple&amp;rsquo;s ease-of-use paradigm, captured in the phrases &amp;ldquo;Clickable Calculus&amp;rdquo; and &amp;ldquo;&lt;a href="http://www.maplesoft.com/products/maple/new_features/clickablemath.aspx"&gt;Clickable Math&lt;/a&gt;&amp;rdquo; provides a syntax-free way to use Maple. The learning curve is flattened. But making Maple easy to use to use badly in the classroom helps neither student nor instructor.&lt;/p&gt;
&lt;p&gt;In the mid to late &amp;lsquo;80s,...</description>
      <guid>134197</guid>
      <pubDate>Mon, 14 May 2012 18:31:36 Z</pubDate>
      <itunes:author>Robert Lopez</itunes:author>
      <author>Robert Lopez</author>
    </item>
    <item>
      <title>C6 Logic 2012 hits</title>
      <link>http://www.mapleprimes.com/posts/133973-C6-Logic-2012-Hits?ref=Feed:MaplePrimes:New Posts</link>
      <itunes:summary>&lt;p&gt;&lt;a href="/ViewTemp.ashx?f=1680_1336574520/C6m.gif"&gt;&lt;img src="/ViewTemp.ashx?f=1680_1336574520/C6m.gif" alt=""&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Russian USE.&lt;br&gt;Download the archive of the html-manual: &lt;a href="/ViewTemp.ashx?f=1680_1336574520/c6.zip"&gt;c6.zip&lt;/a&gt;&lt;br&gt;The main file: c6.html.&lt;br&gt;Online: &lt;a href="http://webmath.narod.ru/do/c6.html"&gt;http://webmath.narod.ru/do/c6.html&lt;/a&gt;&lt;/p&gt;</itunes:summary>
      <description>&lt;p&gt;&lt;a href="/ViewTemp.ashx?f=1680_1336574520/C6m.gif"&gt;&lt;img src="/ViewTemp.ashx?f=1680_1336574520/C6m.gif" alt=""&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Russian USE.&lt;br&gt;Download the archive of the html-manual: &lt;a href="/ViewTemp.ashx?f=1680_1336574520/c6.zip"&gt;c6.zip&lt;/a&gt;&lt;br&gt;The main file: c6.html.&lt;br&gt;Online: &lt;a href="http://webmath.narod.ru/do/c6.html"&gt;http://webmath.narod.ru/do/c6.html&lt;/a&gt;&lt;/p&gt;</description>
      <guid>133973</guid>
      <pubDate>Wed, 09 May 2012 14:44:38 Z</pubDate>
      <itunes:author>Valery Cyboulko</itunes:author>
      <author>Valery Cyboulko</author>
    </item>
    <item>
      <title>C5 Parameter 2012 hits</title>
      <link>http://www.mapleprimes.com/posts/133972-C5-Parameter-2012-Hits?ref=Feed:MaplePrimes:New Posts</link>
      <itunes:summary>&lt;p&gt;&lt;a href="/view.aspx?sf=133972/436536/C5m.gif"&gt;&lt;img src="/view.aspx?sf=133972/436536/C5m.gif" alt=""&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Russian USE.&lt;br&gt;Download the archive of the html-manual: &lt;a href="/view.aspx?sf=133972/436536/c5.zip"&gt;c5.zip&lt;/a&gt;&lt;br&gt;The main file: c5.html.&lt;br&gt;Online: &lt;a href="http://webmath.narod.ru/do/c5.html"&gt;http://webmath.narod.ru/do/c5.html&lt;/a&gt;&lt;/p&gt;</itunes:summary>
      <description>&lt;p&gt;&lt;a href="/view.aspx?sf=133972/436536/C5m.gif"&gt;&lt;img src="/view.aspx?sf=133972/436536/C5m.gif" alt=""&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Russian USE.&lt;br&gt;Download the archive of the html-manual: &lt;a href="/view.aspx?sf=133972/436536/c5.zip"&gt;c5.zip&lt;/a&gt;&lt;br&gt;The main file: c5.html.&lt;br&gt;Online: &lt;a href="http://webmath.narod.ru/do/c5.html"&gt;http://webmath.narod.ru/do/c5.html&lt;/a&gt;&lt;/p&gt;</description>
      <guid>133972</guid>
      <pubDate>Wed, 09 May 2012 14:41:08 Z</pubDate>
      <itunes:author>Valery Cyboulko</itunes:author>
      <author>Valery Cyboulko</author>
    </item>
    <item>
      <title>C4 Planimetry 2012 hits</title>
      <link>http://www.mapleprimes.com/posts/133970-C4-Planimetry-2012-Hits?ref=Feed:MaplePrimes:New Posts</link>
      <itunes:summary>&lt;p&gt;&lt;a href="/ViewTemp.ashx?f=1680_1336573853/C4m.jpg"&gt;&lt;img src="/ViewTemp.ashx?f=1680_1336573853/C4m.jpg" alt=""&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Russian USE.&lt;br&gt;Download the archive of the html-manual: &lt;a href="/ViewTemp.ashx?f=1680_1336573853/c4.zip"&gt;c4.zip&lt;/a&gt;&lt;br&gt;The main file: c4.html.&lt;br&gt;Online: &lt;a href="http://webmath.narod.ru/do/c4.html"&gt;http://webmath.narod.ru/do/c4.html&lt;/a&gt;&lt;/p&gt;</itunes:summary>
      <description>&lt;p&gt;&lt;a href="/ViewTemp.ashx?f=1680_1336573853/C4m.jpg"&gt;&lt;img src="/ViewTemp.ashx?f=1680_1336573853/C4m.jpg" alt=""&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Russian USE.&lt;br&gt;Download the archive of the html-manual: &lt;a href="/ViewTemp.ashx?f=1680_1336573853/c4.zip"&gt;c4.zip&lt;/a&gt;&lt;br&gt;The main file: c4.html.&lt;br&gt;Online: &lt;a href="http://webmath.narod.ru/do/c4.html"&gt;http://webmath.narod.ru/do/c4.html&lt;/a&gt;&lt;/p&gt;</description>
      <guid>133970</guid>
      <pubDate>Wed, 09 May 2012 14:34:12 Z</pubDate>
      <itunes:author>Valery Cyboulko</itunes:author>
      <author>Valery Cyboulko</author>
    </item>
    <item>
      <title>C3 Inequality 2012 hits</title>
      <link>http://www.mapleprimes.com/posts/133966-C3-Inequality-2012-Hits?ref=Feed:MaplePrimes:New Posts</link>
      <itunes:summary>&lt;p&gt;&lt;a href="/ViewTemp.ashx?f=1680_1336572549/m_64.gif"&gt;&lt;img src="/thumbnail.ashx?file=/ViewTemp.ashx?f=1680_1336572549/m_64.gif" alt=""&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Russian USE.&lt;br&gt;Download the archive of the html-manual:&lt;a href="/ViewTemp.ashx?f=1680_1336572549/c3.zip"&gt;c3.zip&lt;/a&gt;&lt;br&gt;The main file: c3.html.&lt;br&gt;Online: &lt;a href="http://webmath.narod.ru/do/c3.html"&gt;http://webmath.narod.ru/do/c3.html&lt;/a&gt;&lt;/p&gt;</itunes:summary>
      <description>&lt;p&gt;&lt;a href="/ViewTemp.ashx?f=1680_1336572549/m_64.gif"&gt;&lt;img src="/thumbnail.ashx?file=/ViewTemp.ashx?f=1680_1336572549/m_64.gif" alt=""&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Russian USE.&lt;br&gt;Download the archive of the html-manual:&lt;a href="/ViewTemp.ashx?f=1680_1336572549/c3.zip"&gt;c3.zip&lt;/a&gt;&lt;br&gt;The main file: c3.html.&lt;br&gt;Online: &lt;a href="http://webmath.narod.ru/do/c3.html"&gt;http://webmath.narod.ru/do/c3.html&lt;/a&gt;&lt;/p&gt;</description>
      <guid>133966</guid>
      <pubDate>Wed, 09 May 2012 14:21:37 Z</pubDate>
      <itunes:author>Valery Cyboulko</itunes:author>
      <author>Valery Cyboulko</author>
    </item>
    <item>
      <title>166 hits in Maple 16</title>
      <link>http://www.mapleprimes.com/posts/133701-166-Hits-In-Maple-16?ref=Feed:MaplePrimes:New Posts</link>
      <itunes:summary>&lt;p&gt;&lt;a href="/view.aspx?sf=133701/436014/Sensile.jpg"&gt;&lt;img src="/view.aspx?sf=133701/436014/Sensile.jpg" alt=""&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;In memory of a Friend. Maple 16 for Russian students.&lt;/p&gt;
&lt;p&gt;&lt;a href="/view.aspx?sf=133701/436014/260412.zip"&gt;260412.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Оформление - облегченное, чтобы работало на любом компьютере. Разархи и открыти файл ege.html. Неточности присутствуют, наверное. Поправим вместе.&lt;/p&gt;
&lt;p&gt;Скачать решебник C1 (Тригонометрия)&amp;nbsp;ЕГЭ сезона 2011/2012 в виде html-пособия: ...</itunes:summary>
      <description>&lt;p&gt;&lt;a href="/view.aspx?sf=133701/436014/Sensile.jpg"&gt;&lt;img src="/view.aspx?sf=133701/436014/Sensile.jpg" alt=""&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;In memory of a Friend. Maple 16 for Russian students.&lt;/p&gt;
&lt;p&gt;&lt;a href="/view.aspx?sf=133701/436014/260412.zip"&gt;260412.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Оформление - облегченное, чтобы работало на любом компьютере. Разархи и открыти файл ege.html. Неточности присутствуют, наверное. Поправим вместе.&lt;/p&gt;
&lt;p&gt;Скачать решебник C1 (Тригонометрия)&amp;nbsp;ЕГЭ сезона 2011/2012 в виде html-пособия: ...</description>
      <guid>133701</guid>
      <pubDate>Thu, 03 May 2012 22:59:30 Z</pubDate>
      <itunes:author>Valery Cyboulko</itunes:author>
      <author>Valery Cyboulko</author>
    </item>
    <item>
      <title>Domain problems in plot for Maple 16</title>
      <link>http://www.mapleprimes.com/posts/133666-Domain-Problems-In-Plot-For-Maple-16?ref=Feed:MaplePrimes:New Posts</link>
      <itunes:summary>&lt;p&gt;The basic plot routine in Maple 16 has a serious problem with the domain.&amp;nbsp; The following is an example.&lt;/p&gt;
&lt;p&gt;The domain is correct in Maple 15.&amp;nbsp; This failure occurs in both Windows 7 and Linux.&lt;/p&gt;
&lt;form name="worksheet_form"&gt;
&lt;table style="width: 576px;" align="center"&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;table style="margin-left: 0px; margin-right: 0px;"&gt;
&lt;tbody&gt;
&lt;tr valign="baseline"&gt;
&lt;td&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;</itunes:summary>
      <description>&lt;p&gt;The basic plot routine in Maple 16 has a serious problem with the domain.&amp;nbsp; The following is an example.&lt;/p&gt;
&lt;p&gt;The domain is correct in Maple 15.&amp;nbsp; This failure occurs in both Windows 7 and Linux.&lt;/p&gt;
&lt;form name="worksheet_form"&gt;
&lt;table style="width: 576px;" align="center"&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;table style="margin-left: 0px; margin-right: 0px;"&gt;
&lt;tbody&gt;
&lt;tr valign="baseline"&gt;
&lt;td&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;</description>
      <guid>133666</guid>
      <pubDate>Thu, 03 May 2012 00:19:32 Z</pubDate>
      <itunes:author>jaytreiman</itunes:author>
      <author>jaytreiman</author>
    </item>
    <item>
      <title>PS driver in Maple 16 for Windows</title>
      <link>http://www.mapleprimes.com/posts/133651-PS-Driver-In-Maple-16-For-Windows?ref=Feed:MaplePrimes:New Posts</link>
      <itunes:summary>&lt;p&gt;I have been generating graphics in Maple 16 using the plotsetup(ps,...) command under Windows 7 and Linux.&amp;nbsp; Maple tech support has a fix for Linux and has confirmed that there is a bug in the Windows version.&amp;nbsp; These are a Windows eps (converted to png for uploading) and png of the same figure.&amp;nbsp; The eps conversion should not do this.&lt;/p&gt;
&lt;p&gt;&lt;a href="/view.aspx?sf=133651/435924/FigureSlices1_7_ep.png"&gt;&lt;/a&gt;</itunes:summary>
      <description>&lt;p&gt;I have been generating graphics in Maple 16 using the plotsetup(ps,...) command under Windows 7 and Linux.&amp;nbsp; Maple tech support has a fix for Linux and has confirmed that there is a bug in the Windows version.&amp;nbsp; These are a Windows eps (converted to png for uploading) and png of the same figure.&amp;nbsp; The eps conversion should not do this.&lt;/p&gt;
&lt;p&gt;&lt;a href="/view.aspx?sf=133651/435924/FigureSlices1_7_ep.png"&gt;&lt;/a&gt;</description>
      <guid>133651</guid>
      <pubDate>Wed, 02 May 2012 15:54:54 Z</pubDate>
      <itunes:author>jaytreiman</itunes:author>
      <author>jaytreiman</author>
    </item>
    <item>
      <title>email change</title>
      <link>http://www.mapleprimes.com/posts/133570-Email-Change?ref=Feed:MaplePrimes:New Posts</link>
      <itunes:summary>&lt;p&gt;There is no option to change your original email address and save in mapleprimes.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;**edit add**&amp;nbsp; Sorry the option is there but the option to save the new email is not. &lt;/p&gt;</itunes:summary>
      <description>&lt;p&gt;There is no option to change your original email address and save in mapleprimes.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;**edit add**&amp;nbsp; Sorry the option is there but the option to save the new email is not. &lt;/p&gt;</description>
      <guid>133570</guid>
      <pubDate>Mon, 30 Apr 2012 01:41:28 Z</pubDate>
      <itunes:author>Christopher2222</itunes:author>
      <author>Christopher2222</author>
    </item>
    <item>
      <title>MRB Constant Y</title>
      <link>http://www.mapleprimes.com/posts/133548-MRB-Constant-Y?ref=Feed:MaplePrimes:New Posts</link>
      <itunes:summary>&lt;p&gt;&amp;nbsp;&lt;/p&gt;
</itunes:summary>
      <description>&lt;p&gt;&amp;nbsp;&lt;/p&gt;
</description>
      <guid>133548</guid>
      <pubDate>Sat, 28 Apr 2012 21:16:41 Z</pubDate>
      <itunes:author>Marvin Ray Burns</itunes:author>
      <author>Marvin Ray Burns</author>
    </item>
    <item>
      <title>Location marker for Plot Component</title>
      <link>http://www.mapleprimes.com/posts/133444-Location-Marker-For-Plot-Component?ref=Feed:MaplePrimes:New Posts</link>
      <itunes:summary>&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The &lt;a href="http://reference.wolfram.com/mathematica/ref/Locator.html"&gt;Locator&lt;/a&gt; object is a nice piece of Mathematica's &lt;a href="http://reference.wolfram.com/mathematica/ref/Manipulate.html"&gt;Manipulate&lt;/a&gt; command's functionality. Perhaps Maple's &lt;a href="http://www.maplesoft.com/support/help/Maple/view.aspx?path=Explore"&gt;Explore&lt;/a&gt; command could do something as good.&lt;/p&gt;
&lt;p&gt;Here below is a roughly laid out example, as a Worksheet. Of course, this is not...</itunes:summary>
      <description>&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The &lt;a href="http://reference.wolfram.com/mathematica/ref/Locator.html"&gt;Locator&lt;/a&gt; object is a nice piece of Mathematica's &lt;a href="http://reference.wolfram.com/mathematica/ref/Manipulate.html"&gt;Manipulate&lt;/a&gt; command's functionality. Perhaps Maple's &lt;a href="http://www.maplesoft.com/support/help/Maple/view.aspx?path=Explore"&gt;Explore&lt;/a&gt; command could do something as good.&lt;/p&gt;
&lt;p&gt;Here below is a roughly laid out example, as a Worksheet. Of course, this is not...</description>
      <guid>133444</guid>
      <pubDate>Thu, 26 Apr 2012 05:04:54 Z</pubDate>
      <itunes:author>acer</itunes:author>
      <author>acer</author>
    </item>
    <item>
      <title>repeating wrapper (DirectSearch)</title>
      <link>http://www.mapleprimes.com/posts/133384-Repeating-Wrapper-DirectSearch?ref=Feed:MaplePrimes:New Posts</link>
      <itunes:summary>&lt;p&gt;Here is a short wrapper which automates repeated calls to the DirectSearch 2 curve-fitting routine. It offers both time and repetition (solver restart) limits.&lt;/p&gt;
&lt;p&gt;The global optimization package DirectSearch 2 (see Application Center &lt;a href="http://www.maplesoft.com/applications/view.aspx?SID=101333"&gt;link&lt;/a&gt;, and &lt;a href="http://www.mapleprimes.com/posts/101374-DirectSearch-Optimization-Package-Version-2"&gt;here&lt;/a&gt;) has some very nice features.&amp;nbsp;One aspect which I really like is that it can do curve-fitting: to fit an expression using tabular data. By this, I mean that it can find optimal values of parameters present in an expression (formula) such that the residual error between that formula and the tabular data is minimized.&lt;/p&gt;
&lt;p&gt;Maple itself has commands from the &lt;a href="http://www.maplesoft.com/support/help/Maple/view.aspx?path=CurveFitting"&gt;CurveFitting&lt;/a&gt; and &lt;a href="http://www.maplesoft.com/support/help/Maple/view.aspx?path=Statistics%2fRegression"&gt;Statistics&lt;/a&gt; packages for data regression, such as &lt;a href="http://www.maplesoft.com/support/help/Maple/view.aspx?path=Statistics/NonlinearFit"&gt;NonlinearFit&lt;/a&gt;, etc. But those use local optimization solvers, and&amp;nbsp;quite often&amp;nbsp;for the nonlinear case one may need a global optimizer in order to produce a good fit. The nonlinear problem may have local extrema which are not even close to being globally optimal or provide a close fit.&lt;/p&gt;
&lt;p&gt;Maplesoft offers the (commercially available) &lt;a href="http://www.maplesoft.com/support/help/AddOns/view.aspx?path=GlobalOptimization"&gt;GlobalOptimization&lt;/a&gt; package as an add-on to Maple, but its solvers are not hooked into those mentioned curve-fitting commands. One has to set up the proper residual-based objective function onself in order to use this for curve-fitting, and some of the bells and whistles may be harder to do.&lt;/p&gt;
&lt;p&gt;So this is why I really like the fact that the DirectSearch 2 package has its own exported commands to do curve-fitting, integrated with its global solvers.&lt;/p&gt;
&lt;p&gt;But as the DirectSearch package's&amp;nbsp;&lt;a href="http://www.mapleprimes.com/users/mois"&gt;author&lt;/a&gt;&amp;nbsp;&lt;a href="http://www.mapleprimes.com/questions/133189-Deep-Fit-With-Maple#comment133369"&gt;mentions&lt;/a&gt;, the fitting routine may sometimes exit too early. Repeat starts of the solver, for the very same parameter ranges, can produce varying results due to randomization steps performed by the solver. This post is branched off from another thread which involved such a problematic example.&lt;/p&gt;
&lt;p&gt;Global optimization is often a dark art. Sometimes one may wish to simply have the engine work for 24 hours, and produce whatever best result it can. That's the basic enhancement this wrapper offers.&lt;/p&gt;
&lt;p&gt;Here is the wrapper, and a few illustrative calls to it on the mentioned curve-fitting example that show informative &amp;nbsp;progress status messages, etc. I've tried to make the wrapper pretty generic. It could be reused for other similar purposes.&lt;/p&gt;
&lt;p&gt;Other improvements are possible, but might make it less generic. A target option is possible, where attainment of the target would cause an immediate stop. The wrapper could be made into an appliable module, and the running best result could be stored in a module local so that any error (and ensuing halt) would not wipe out the best result from potentially hours and hours worth of conputation.&lt;/p&gt;
&lt;pre&gt;restart:
randomize():

repeater:=proc(  funccall::uneval
               , {maxtime::numeric:=60}
               , {maxiter::posint:=10}
               , {access::appliable:=proc(a) SFloat(a[1]); end proc}
               , {initial::anything:=[infinity]}
              )
          local best, current, elapsed, i, starttime;
            starttime:=time[real]();
            elapsed:=time[real]()-starttime;
            i:=1; best:=[infinity];
            while elapsed&amp;lt;maxtime and i&amp;lt;=maxiter do
              userinfo(2,repeater,`iteration `,i);
              try
                timelimit(maxtime-elapsed,assign('current',eval(funccall)));
              catch "time expired":
              end try;
              if is(access(current)&amp;lt;access(best)) then
                best:=current;
                userinfo(1,repeater,`new best `,access(best));
              end if;
              i:=i+1;
              elapsed:=time[real]()-starttime;
              userinfo(2,repeater,`elapsed time `,elapsed);
            end do;
            if best&amp;lt;&amp;gt;initial then
              return best;
            else
              error "time limit exceeded during first attempt";
            end if;
          end proc:


X := Vector([seq(.1*j, j = 0 .. 16), 1.65], datatype = float): 

Y := Vector([2.61, 2.62, 2.62, 2.62, 2.63, 2.63, 2.74, 2.98, 3.66,
             5.04, 7.52, 10.74, 12.62, 10.17, 5, 2.64, 11.5, 35.4],
            datatype = float):

F := a*cosh(b*x^c*sin(d*x^e));

                                    /   c    /   e\\
                         F := a cosh\b x  sin\d x //

infolevel[repeater]:=2: # or 1, or not at all (ie. 0)
interface(warnlevel=0): # disabling warnings. disable if you want.

repeater(DirectSearch:-DataFit(F
                      , [a=0..10, b=-10..10, c=0..100, d=0..7, e=0..4]
                      , X, Y, x
                      , strategy=globalsearch
                      , evaluationlimit=30000
                              ));
repeater: iteration  1
repeater: new best  9.81701944539358706
repeater: elapsed time  15.884
repeater: iteration  2
repeater: new best  2.30718902535293857
repeater: elapsed time  22.354
repeater: iteration  3
repeater: new best  0.627585701120743822e-4
repeater: elapsed time  30.777
repeater: iteration  4
repeater: elapsed time  47.959
repeater: iteration  5
repeater: new best  0.627585700905294148e-4
repeater: elapsed time  55.221
repeater: iteration  6
repeater: elapsed time  60.009
 [0.0000627585700905294, [a = 2.61748237902808, b = 1.71949329097179, 

   c = 2.30924401405164, d = 1.50333106110324, e = 1.84597267458055], 4333]


# without userinfo messages printed
infolevel[repeater]:=0:
repeater(DirectSearch:-DataFit(F
                      , [a=0..10, b=-10..10, c=0..100, d=0..7, e=0..4]
                      , X, Y, x
                      , strategy=globalsearch
                      , evaluationlimit=30000
                              ));

 [0.0000627585701341043, [a = 2.61748226209478, b = 1.71949332125427, 

   c = 2.30924369227236, d = 1.50333090706676, e = 1.84597294290477], 6050]


# illustrating early timeout
infolevel[repeater]:=2:
repeater(DirectSearch:-DataFit(F
                      , [a=0..10, b=-10..10, c=0..100, d=0..7, e=0..4]
                      , X, Y, x
                      , strategy=globalsearch
                      , evaluationlimit=30000
                              ),
         maxtime=2);

repeater: iteration  1
repeater: elapsed time  2.002
Error, (in repeater) time limit exceeded during first attempt

# illustrating iteration limit cutoff
infolevel[repeater]:=2:
repeater(DirectSearch:-DataFit(F
                      , [a=0..10, b=-10..10, c=0..100, d=0..7, e=0..4]
                      , X, Y, x
                      , strategy=globalsearch
                      , evaluationlimit=30000
                              ),
         maxiter=1);

repeater: iteration  1
repeater: new best  5.68594272127419575
repeater: elapsed time  7.084
 [5.68594272127420, [a = 3.51723075672918, b = -1.48456068506828, 

   c = 1.60544055207338, d = 6.99999999983179, e = 3.72070034285212], 2793]


# giving it a large total time limit, with reduced userinfo messages
infolevel[repeater]:=1:
Digits:=15:
repeater(DirectSearch:-DataFit(F
                      , [a=0..10, b=-10..10, c=0..100, d=0..7, e=0..4]
                      , X, Y, x
                      , strategy=globalsearch
                      , evaluationlimit=30000
                              ),
         maxtime=2000, maxiter=1000);

repeater: new best  3.10971990123465947
repeater: new best  0.627585701270853103e-4
repeater: new best  0.627585700896181428e-4
repeater: new best  0.627585700896051324e-4
repeater: new best  0.627585700895833535e-4
repeater: new best  0.627585700895607885e-4
 [0.0000627585700895608, [a = 2.61748239185387, b = -1.71949328487160, 

   c = 2.30924398692221, d = 1.50333104262348, e = 1.84597270535142], 6502]
&lt;/pre&gt;
</itunes:summary>
      <description>&lt;p&gt;Here is a short wrapper which automates repeated calls to the DirectSearch 2 curve-fitting routine. It offers both time and repetition (solver restart) limits.&lt;/p&gt;
&lt;p&gt;The global optimization package DirectSearch 2 (see Application Center &lt;a href="http://www.maplesoft.com/applications/view.aspx?SID=101333"&gt;link&lt;/a&gt;, and &lt;a href="http://www.mapleprimes.com/posts/101374-DirectSearch-Optimization-Package-Version-2"&gt;here&lt;/a&gt;) has some very nice features.&amp;nbsp;One aspect which I really like is that it can do curve-fitting: to fit an expression using tabular data. By this, I mean that it can find optimal values of parameters present in an expression (formula) such that the residual error between that formula and the tabular data is minimized.&lt;/p&gt;
&lt;p&gt;Maple itself has commands from the &lt;a href="http://www.maplesoft.com/support/help/Maple/view.aspx?path=CurveFitting"&gt;CurveFitting&lt;/a&gt; and &lt;a href="http://www.maplesoft.com/support/help/Maple/view.aspx?path=Statistics%2fRegression"&gt;Statistics&lt;/a&gt; packages for data regression, such as &lt;a href="http://www.maplesoft.com/support/help/Maple/view.aspx?path=Statistics/NonlinearFit"&gt;NonlinearFit&lt;/a&gt;, etc. But those use local optimization solvers, and&amp;nbsp;quite often&amp;nbsp;for the nonlinear case one may need a global optimizer in order to produce a good fit. The nonlinear problem may have local extrema which are not even close to being globally optimal or provide a close fit.&lt;/p&gt;
&lt;p&gt;Maplesoft offers the (commercially available) &lt;a href="http://www.maplesoft.com/support/help/AddOns/view.aspx?path=GlobalOptimization"&gt;GlobalOptimization&lt;/a&gt; package as an add-on to Maple, but its solvers are not hooked into those mentioned curve-fitting commands. One has to set up the proper residual-based objective function onself in order to use this for curve-fitting, and some of the bells and whistles may be harder to do.&lt;/p&gt;
&lt;p&gt;So this is why I really like the fact that the DirectSearch 2 package has its own exported commands to do curve-fitting, integrated with its global solvers.&lt;/p&gt;
&lt;p&gt;But as the DirectSearch package's&amp;nbsp;&lt;a href="http://www.mapleprimes.com/users/mois"&gt;author&lt;/a&gt;&amp;nbsp;&lt;a href="http://www.mapleprimes.com/questions/133189-Deep-Fit-With-Maple#comment133369"&gt;mentions&lt;/a&gt;, the fitting routine may sometimes exit too early. Repeat starts of the solver, for the very same parameter ranges, can produce varying results due to randomization steps performed by the solver. This post is branched off from another thread which involved such a problematic example.&lt;/p&gt;
&lt;p&gt;Global optimization is often a dark art. Sometimes one may wish to simply have the engine work for 24 hours, and produce whatever best result it can. That's the basic enhancement this wrapper offers.&lt;/p&gt;
&lt;p&gt;Here is the wrapper, and a few illustrative calls to it on the mentioned curve-fitting example that show informative &amp;nbsp;progress status messages, etc. I've tried to make the wrapper pretty generic. It could be reused for other similar purposes.&lt;/p&gt;
&lt;p&gt;Other improvements are possible, but might make it less generic. A target option is possible, where attainment of the target would cause an immediate stop. The wrapper could be made into an appliable module, and the running best result could be stored in a module local so that any error (and ensuing halt) would not wipe out the best result from potentially hours and hours worth of conputation.&lt;/p&gt;
&lt;pre&gt;restart:
randomize():

repeater:=proc(  funccall::uneval
               , {maxtime::numeric:=60}
               , {maxiter::posint:=10}
               , {access::appliable:=proc(a) SFloat(a[1]); end proc}
               , {initial::anything:=[infinity]}
              )
          local best, current, elapsed, i, starttime;
            starttime:=time[real]();
            elapsed:=time[real]()-starttime;
            i:=1; best:=[infinity];
            while elapsed&amp;lt;maxtime and i&amp;lt;=maxiter do
              userinfo(2,repeater,`iteration `,i);
              try
                timelimit(maxtime-elapsed,assign('current',eval(funccall)));
              catch "time expired":
              end try;
              if is(access(current)&amp;lt;access(best)) then
                best:=current;
                userinfo(1,repeater,`new best `,access(best));
              end if;
              i:=i+1;
              elapsed:=time[real]()-starttime;
              userinfo(2,repeater,`elapsed time `,elapsed);
            end do;
            if best&amp;lt;&amp;gt;initial then
              return best;
            else
              error "time limit exceeded during first attempt";
            end if;
          end proc:


X := Vector([seq(.1*j, j = 0 .. 16), 1.65], datatype = float): 

Y := Vector([2.61, 2.62, 2.62, 2.62, 2.63, 2.63, 2.74, 2.98, 3.66,
             5.04, 7.52, 10.74, 12.62, 10.17, 5, 2.64, 11.5, 35.4],
            datatype = float):

F := a*cosh(b*x^c*sin(d*x^e));

                                    /   c    /   e\\
                         F := a cosh\b x  sin\d x //

infolevel[repeater]:=2: # or 1, or not at all (ie. 0)
interface(warnlevel=0): # disabling warnings. disable if you want.

repeater(DirectSearch:-DataFit(F
                      , [a=0..10, b=-10..10, c=0..100, d=0..7, e=0..4]
                      , X, Y, x
                      , strategy=globalsearch
                      , evaluationlimit=30000
                              ));
repeater: iteration  1
repeater: new best  9.81701944539358706
repeater: elapsed time  15.884
repeater: iteration  2
repeater: new best  2.30718902535293857
repeater: elapsed time  22.354
repeater: iteration  3
repeater: new best  0.627585701120743822e-4
repeater: elapsed time  30.777
repeater: iteration  4
repeater: elapsed time  47.959
repeater: iteration  5
repeater: new best  0.627585700905294148e-4
repeater: elapsed time  55.221
repeater: iteration  6
repeater: elapsed time  60.009
 [0.0000627585700905294, [a = 2.61748237902808, b = 1.71949329097179, 

   c = 2.30924401405164, d = 1.50333106110324, e = 1.84597267458055], 4333]


# without userinfo messages printed
infolevel[repeater]:=0:
repeater(DirectSearch:-DataFit(F
                      , [a=0..10, b=-10..10, c=0..100, d=0..7, e=0..4]
                      , X, Y, x
                      , strategy=globalsearch
                      , evaluationlimit=30000
                              ));

 [0.0000627585701341043, [a = 2.61748226209478, b = 1.71949332125427, 

   c = 2.30924369227236, d = 1.50333090706676, e = 1.84597294290477], 6050]


# illustrating early timeout
infolevel[repeater]:=2:
repeater(DirectSearch:-DataFit(F
                      , [a=0..10, b=-10..10, c=0..100, d=0..7, e=0..4]
                      , X, Y, x
                      , strategy=globalsearch
                      , evaluationlimit=30000
                              ),
         maxtime=2);

repeater: iteration  1
repeater: elapsed time  2.002
Error, (in repeater) time limit exceeded during first attempt

# illustrating iteration limit cutoff
infolevel[repeater]:=2:
repeater(DirectSearch:-DataFit(F
                      , [a=0..10, b=-10..10, c=0..100, d=0..7, e=0..4]
                      , X, Y, x
                      , strategy=globalsearch
                      , evaluationlimit=30000
                              ),
         maxiter=1);

repeater: iteration  1
repeater: new best  5.68594272127419575
repeater: elapsed time  7.084
 [5.68594272127420, [a = 3.51723075672918, b = -1.48456068506828, 

   c = 1.60544055207338, d = 6.99999999983179, e = 3.72070034285212], 2793]


# giving it a large total time limit, with reduced userinfo messages
infolevel[repeater]:=1:
Digits:=15:
repeater(DirectSearch:-DataFit(F
                      , [a=0..10, b=-10..10, c=0..100, d=0..7, e=0..4]
                      , X, Y, x
                      , strategy=globalsearch
                      , evaluationlimit=30000
                              ),
         maxtime=2000, maxiter=1000);

repeater: new best  3.10971990123465947
repeater: new best  0.627585701270853103e-4
repeater: new best  0.627585700896181428e-4
repeater: new best  0.627585700896051324e-4
repeater: new best  0.627585700895833535e-4
repeater: new best  0.627585700895607885e-4
 [0.0000627585700895608, [a = 2.61748239185387, b = -1.71949328487160, 

   c = 2.30924398692221, d = 1.50333104262348, e = 1.84597270535142], 6502]
&lt;/pre&gt;
</description>
      <guid>133384</guid>
      <pubDate>Wed, 25 Apr 2012 03:30:14 Z</pubDate>
      <itunes:author>acer</itunes:author>
      <author>acer</author>
    </item>
    <item>
      <title>A Hybrid between HTTP:-Get and ImportMatrix</title>
      <link>http://www.mapleprimes.com/posts/133367-A-Hybrid-Between-HTTPGet-And-ImportMatrix?ref=Feed:MaplePrimes:New Posts</link>
      <itunes:summary>&lt;p&gt;I came across a thing that does not make sense in Maple. If you click on:&lt;br&gt;&lt;br&gt;&lt;a href="http://ichart.finance.yahoo.com/table.csv?s=CSV&amp;amp;a=10&amp;amp;b=15&amp;amp;c=1996&amp;amp;d=03&amp;amp;e=24&amp;amp;f=2012&amp;amp;g=d&amp;amp;ignore=.csv"&gt;http://ichart.finance.yahoo.com/table.csv?s=CSV&amp;amp;a=10&amp;amp;b=15&amp;amp;c=1996&amp;amp;d=03&amp;amp;e=24&amp;amp;f=2012&amp;amp;g=d&amp;amp;ignore=.csv&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Then you will get a csv-file. &lt;br&gt;&lt;br&gt;Now if you download and save that file on your computer then you can open it with:</itunes:summary>
      <description>&lt;p&gt;I came across a thing that does not make sense in Maple. If you click on:&lt;br&gt;&lt;br&gt;&lt;a href="http://ichart.finance.yahoo.com/table.csv?s=CSV&amp;amp;a=10&amp;amp;b=15&amp;amp;c=1996&amp;amp;d=03&amp;amp;e=24&amp;amp;f=2012&amp;amp;g=d&amp;amp;ignore=.csv"&gt;http://ichart.finance.yahoo.com/table.csv?s=CSV&amp;amp;a=10&amp;amp;b=15&amp;amp;c=1996&amp;amp;d=03&amp;amp;e=24&amp;amp;f=2012&amp;amp;g=d&amp;amp;ignore=.csv&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Then you will get a csv-file. &lt;br&gt;&lt;br&gt;Now if you download and save that file on your computer then you can open it with:</description>
      <guid>133367</guid>
      <pubDate>Tue, 24 Apr 2012 16:46:29 Z</pubDate>
      <itunes:author>alex_01</itunes:author>
      <author>alex_01</author>
    </item>
    <item>
      <title>Cloud Database</title>
      <link>http://www.mapleprimes.com/posts/133265-Cloud-Database?ref=Feed:MaplePrimes:New Posts</link>
      <itunes:summary>&lt;p&gt;I am surfing around looking for cloud database providers (a lot of them are free &lt;br&gt;such as &lt;a href="http://xeround.com"&gt;http://xeround.com&lt;/a&gt;) Then it struck me that maple has a cloud. Unfortunatly I &lt;br&gt;dont think it can handle what I want it to do:&lt;br&gt;&lt;br&gt;Wouldnt it be cool if every maple user could have a personal or public data warehouse &lt;br&gt;in the maple cloud instead of everyone having sql servers running localy with attached &lt;br&gt;cron jobs and head aches.&lt;/p&gt;
&lt;p&gt;It...</itunes:summary>
      <description>&lt;p&gt;I am surfing around looking for cloud database providers (a lot of them are free &lt;br&gt;such as &lt;a href="http://xeround.com"&gt;http://xeround.com&lt;/a&gt;) Then it struck me that maple has a cloud. Unfortunatly I &lt;br&gt;dont think it can handle what I want it to do:&lt;br&gt;&lt;br&gt;Wouldnt it be cool if every maple user could have a personal or public data warehouse &lt;br&gt;in the maple cloud instead of everyone having sql servers running localy with attached &lt;br&gt;cron jobs and head aches.&lt;/p&gt;
&lt;p&gt;It...</description>
      <guid>133265</guid>
      <pubDate>Sun, 22 Apr 2012 21:08:02 Z</pubDate>
      <itunes:author>alex_01</itunes:author>
      <author>alex_01</author>
    </item>
  </channel>
</rss>
