<rss xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" version="2.0">
  <channel>
    <title>MaplePrimes - Global Optimization Posts and Questions</title>
    <link>http://www.mapleprimes.com/products/Maple Toolboxes/Global Optimization</link>
    <language>en-us</language>
    <copyright>2026 Maplesoft, A Division of Waterloo Maple Inc.</copyright>
    <generator>Maplesoft Document System</generator>
    <lastBuildDate>Sun, 12 Apr 2026 10:53:12 GMT</lastBuildDate>
    <pubDate>Sun, 12 Apr 2026 10:53:12 GMT</pubDate>
    <itunes:subtitle />
    <itunes:summary />
    <description>Global Optimization Questions and Posts on MaplePrimes</description>
    <image>
      <url>http://www.mapleprimes.com/images/mapleprimeswhite.jpg</url>
      <title>MaplePrimes - Global Optimization Posts and Questions</title>
      <link>http://www.mapleprimes.com/products/Maple Toolboxes/Global Optimization</link>
    </image>
    <item>
      <title>Optimizing Mini Golf in MapleSim</title>
      <link>http://www.mapleprimes.com/maplesoftblog/211934-Optimizing-Mini-Golf-In-MapleSim?ref=Feed:MaplePrimes:Version Global Optimization</link>
      <itunes:summary>&lt;p&gt;Playing mini-golf recently, I realized that my protractor can only help me so far since it can&amp;#39;t calculate the speed of the swing needed.&amp;nbsp; I decided a more sophisticated tool was needed and modeled a trick-shot in MapleSim.&lt;/p&gt;

&lt;p&gt;To start, I laid out the obstacles, the ball and club, the ground, and some additional visualizations in the MapleSim environment.&lt;/p&gt;

&lt;p&gt;&lt;img src="/view.aspx?sf=211934_post/Mini_Golf_Model_1.png"&gt;&lt;/p&gt;

&lt;p&gt;&amp;nbsp;&lt;/p&gt;

&lt;p&gt;When running the simulation, my first result wasn&amp;#39;t even close to the hole (similar to when I play in real life!).&lt;/p&gt;

&lt;p&gt;&lt;img src="/view.aspx?sf=211934_post/MapleSim_Mini_Golf_(Not_Optimized).gif"&gt;&lt;/p&gt;

&lt;p&gt;&amp;nbsp;&lt;/p&gt;

&lt;p&gt;The model clearly needed to be optimized. I went to the Optimization app in MapleSim (this can be found under Add Apps or Templates &lt;img src="/view.aspx?sf=211934_post/App.png"&gt;&amp;nbsp;on the left hand side).&lt;/p&gt;

&lt;p&gt;&lt;img src="/view.aspx?sf=211934_post/Add_Apps_or_Templates.png"&gt;&lt;/p&gt;

&lt;p&gt;&amp;nbsp;&lt;/p&gt;

&lt;p&gt;Inside the app I clicked &amp;quot;Load System&amp;quot; then selected the parameters I wanted to optimize.&lt;/p&gt;

&lt;p&gt;&lt;img src="/view.aspx?sf=211934_post/Parameter_Optimization.png"&gt;&lt;/p&gt;

&lt;p&gt;&amp;nbsp;&lt;/p&gt;

&lt;p&gt;For this case, I&amp;#39;m optimizing &amp;#39;s&amp;#39; (the speed of the club) and &amp;#39;theta&amp;#39; (the angle of the club). For the Objective Function I added a Relative Translation Sensor to the model and attached a probe to the Vector Norm of the output.&lt;/p&gt;

&lt;p&gt;&lt;img src="/view.aspx?sf=211934_post/Mini_Golf_Model_2.png"&gt;&lt;/p&gt;

&lt;p&gt;&amp;nbsp;&lt;/p&gt;

&lt;p&gt;Inside the app, I switched to the Objective Function section.&amp;nbsp; Selecting Probes, I added the new probe as the Objective Function by giving it a weight of 1.&lt;/p&gt;

&lt;p&gt;&lt;img src="/view.aspx?sf=211934_post/Parameter_Optimization_Obj.png"&gt;&lt;/p&gt;

&lt;p&gt;&amp;nbsp;&lt;/p&gt;

&lt;p&gt;&amp;nbsp;&lt;/p&gt;

&lt;p&gt;Scrolling down to &amp;quot;Execute Parameter Optimization&amp;quot;, I checked the &amp;quot;Use Global Optimization Toolbox&amp;quot; checkbox, and clicked Run Parameter Optimization.&lt;/p&gt;

&lt;p&gt;&lt;img src="/view.aspx?sf=211934_post/Execute_Param_Op.png"&gt;&lt;/p&gt;

&lt;p&gt;&amp;nbsp;&lt;/p&gt;

&lt;p&gt;Following a run time of 120 seconds, the app returns the graph of the objective function.&amp;nbsp;&lt;/p&gt;

&lt;p&gt;&lt;img src="/view.aspx?sf=211934_post/Plot_Results.png"&gt;&lt;/p&gt;

&lt;p&gt;&amp;nbsp;&lt;/p&gt;

&lt;p&gt;Below the plot, optimal values for the parameters are given. Plugging these back into the parameter block for the simulation we see that the ball does in fact go into the hole. Success!&lt;/p&gt;

&lt;p&gt;&lt;img src="/view.aspx?sf=211934_post/MapleSim_Mini_Golf.gif"&gt;&lt;/p&gt;

&lt;p&gt;&amp;nbsp;&lt;/p&gt;

&lt;p&gt;&lt;img src="/view.aspx?sf=211934_post/MapleSim_Mini_Golf_(Tracking).gif"&gt;&lt;/p&gt;

&lt;p&gt;&amp;nbsp;&lt;/p&gt;

&lt;p&gt;&lt;a href="/view.aspx?sf=211934_post/Mini_golf_Global_Optimization.msim"&gt;Mini_golf_Global_Optimization.msim&lt;/a&gt;&lt;/p&gt;
</itunes:summary>
      <description>&lt;p&gt;Playing mini-golf recently, I realized that my protractor can only help me so far since it can&amp;#39;t calculate the speed of the swing needed.&amp;nbsp; I decided a more sophisticated tool was needed and modeled a trick-shot in MapleSim.&lt;/p&gt;

&lt;p&gt;To start, I laid out the obstacles, the ball and club, the ground, and some additional visualizations in the MapleSim environment.&lt;/p&gt;

&lt;p&gt;&lt;img src="/view.aspx?sf=211934_post/Mini_Golf_Model_1.png"&gt;&lt;/p&gt;

&lt;p&gt;&amp;nbsp;&lt;/p&gt;

&lt;p&gt;When running the simulation, my first result wasn&amp;#39;t even close to the hole (similar to when I play in real life!).&lt;/p&gt;

&lt;p&gt;&lt;img src="/view.aspx?sf=211934_post/MapleSim_Mini_Golf_(Not_Optimized).gif"&gt;&lt;/p&gt;

&lt;p&gt;&amp;nbsp;&lt;/p&gt;

&lt;p&gt;The model clearly needed to be optimized. I went to the Optimization app in MapleSim (this can be found under Add Apps or Templates &lt;img src="/view.aspx?sf=211934_post/App.png"&gt;&amp;nbsp;on the left hand side).&lt;/p&gt;

&lt;p&gt;&lt;img src="/view.aspx?sf=211934_post/Add_Apps_or_Templates.png"&gt;&lt;/p&gt;

&lt;p&gt;&amp;nbsp;&lt;/p&gt;

&lt;p&gt;Inside the app I clicked &amp;quot;Load System&amp;quot; then selected the parameters I wanted to optimize.&lt;/p&gt;

&lt;p&gt;&lt;img src="/view.aspx?sf=211934_post/Parameter_Optimization.png"&gt;&lt;/p&gt;

&lt;p&gt;&amp;nbsp;&lt;/p&gt;

&lt;p&gt;For this case, I&amp;#39;m optimizing &amp;#39;s&amp;#39; (the speed of the club) and &amp;#39;theta&amp;#39; (the angle of the club). For the Objective Function I added a Relative Translation Sensor to the model and attached a probe to the Vector Norm of the output.&lt;/p&gt;

&lt;p&gt;&lt;img src="/view.aspx?sf=211934_post/Mini_Golf_Model_2.png"&gt;&lt;/p&gt;

&lt;p&gt;&amp;nbsp;&lt;/p&gt;

&lt;p&gt;Inside the app, I switched to the Objective Function section.&amp;nbsp; Selecting Probes, I added the new probe as the Objective Function by giving it a weight of 1.&lt;/p&gt;

&lt;p&gt;&lt;img src="/view.aspx?sf=211934_post/Parameter_Optimization_Obj.png"&gt;&lt;/p&gt;

&lt;p&gt;&amp;nbsp;&lt;/p&gt;

&lt;p&gt;&amp;nbsp;&lt;/p&gt;

&lt;p&gt;Scrolling down to &amp;quot;Execute Parameter Optimization&amp;quot;, I checked the &amp;quot;Use Global Optimization Toolbox&amp;quot; checkbox, and clicked Run Parameter Optimization.&lt;/p&gt;

&lt;p&gt;&lt;img src="/view.aspx?sf=211934_post/Execute_Param_Op.png"&gt;&lt;/p&gt;

&lt;p&gt;&amp;nbsp;&lt;/p&gt;

&lt;p&gt;Following a run time of 120 seconds, the app returns the graph of the objective function.&amp;nbsp;&lt;/p&gt;

&lt;p&gt;&lt;img src="/view.aspx?sf=211934_post/Plot_Results.png"&gt;&lt;/p&gt;

&lt;p&gt;&amp;nbsp;&lt;/p&gt;

&lt;p&gt;Below the plot, optimal values for the parameters are given. Plugging these back into the parameter block for the simulation we see that the ball does in fact go into the hole. Success!&lt;/p&gt;

&lt;p&gt;&lt;img src="/view.aspx?sf=211934_post/MapleSim_Mini_Golf.gif"&gt;&lt;/p&gt;

&lt;p&gt;&amp;nbsp;&lt;/p&gt;

&lt;p&gt;&lt;img src="/view.aspx?sf=211934_post/MapleSim_Mini_Golf_(Tracking).gif"&gt;&lt;/p&gt;

&lt;p&gt;&amp;nbsp;&lt;/p&gt;

&lt;p&gt;&lt;a href="/view.aspx?sf=211934_post/Mini_golf_Global_Optimization.msim"&gt;Mini_golf_Global_Optimization.msim&lt;/a&gt;&lt;/p&gt;
</description>
      <guid>211934</guid>
      <pubDate>Wed, 12 Feb 2020 20:06:25 Z</pubDate>
      <itunes:author>TechnicalSupport</itunes:author>
      <author>TechnicalSupport</author>
    </item>
    <item>
      <title>randomize in GlobalOptimization</title>
      <link>http://www.mapleprimes.com/questions/228178-Randomize-In-GlobalOptimization?ref=Feed:MaplePrimes:Version Global Optimization</link>
      <itunes:summary>&lt;p&gt;Does global optimization toolbox has randomization option it gives same value every time&lt;/p&gt;
</itunes:summary>
      <description>&lt;p&gt;Does global optimization toolbox has randomization option it gives same value every time&lt;/p&gt;
</description>
      <guid>228178</guid>
      <pubDate>Wed, 30 Oct 2019 18:23:09 Z</pubDate>
      <itunes:author>radaar</itunes:author>
      <author>radaar</author>
    </item>
    <item>
      <title>thread safe or not</title>
      <link>http://www.mapleprimes.com/questions/228165-Thread-Safe-Or-Not?ref=Feed:MaplePrimes:Version Global Optimization</link>
      <itunes:summary>&lt;p&gt;Does globalsolve from global optimization toolbox thread safe or not&lt;/p&gt;
</itunes:summary>
      <description>&lt;p&gt;Does globalsolve from global optimization toolbox thread safe or not&lt;/p&gt;
</description>
      <guid>228165</guid>
      <pubDate>Tue, 29 Oct 2019 07:31:31 Z</pubDate>
      <itunes:author>radaar</itunes:author>
      <author>radaar</author>
    </item>
    <item>
      <title>GlobalOptimization benchmarks</title>
      <link>http://www.mapleprimes.com/questions/228144-GlobalOptimization-Benchmarks?ref=Feed:MaplePrimes:Version Global Optimization</link>
      <itunes:summary>&lt;p&gt;Does Maplesoft provide success percentage of this toolbox on benchmark functions?. I cannot see much options in the global solve command (from maple help page) other than population size etc.&amp;nbsp;&lt;/p&gt;
</itunes:summary>
      <description>&lt;p&gt;Does Maplesoft provide success percentage of this toolbox on benchmark functions?. I cannot see much options in the global solve command (from maple help page) other than population size etc.&amp;nbsp;&lt;/p&gt;
</description>
      <guid>228144</guid>
      <pubDate>Sat, 26 Oct 2019 15:12:44 Z</pubDate>
      <itunes:author>radaar</itunes:author>
      <author>radaar</author>
    </item>
    <item>
      <title>local optimizer in GlobalOptimization</title>
      <link>http://www.mapleprimes.com/questions/228143-Local-Optimizer-In-GlobalOptimization?ref=Feed:MaplePrimes:Version Global Optimization</link>
      <itunes:summary>&lt;p&gt;I would like to know whether a local optimizer is combined with the present global optimization toolbox?. I read that toolbox has differential evolution and surrogate optimization techniques etc. These methods guarantee near-optimal solutions and it is often recommended to use a local optimization technique in conjunction with global optimization techniques.&amp;nbsp;&lt;/p&gt;
</itunes:summary>
      <description>&lt;p&gt;I would like to know whether a local optimizer is combined with the present global optimization toolbox?. I read that toolbox has differential evolution and surrogate optimization techniques etc. These methods guarantee near-optimal solutions and it is often recommended to use a local optimization technique in conjunction with global optimization techniques.&amp;nbsp;&lt;/p&gt;
</description>
      <guid>228143</guid>
      <pubDate>Sat, 26 Oct 2019 10:47:51 Z</pubDate>
      <itunes:author>radaar</itunes:author>
      <author>radaar</author>
    </item>
    <item>
      <title>When GlobalOpimization is wrong , but Optimization is right!</title>
      <link>http://www.mapleprimes.com/questions/227978-When-GlobalOpimization-Is-Wrong--But?ref=Feed:MaplePrimes:Version Global Optimization</link>
      <itunes:summary>&lt;p&gt;first I define some constants (note I may change the constants later based on the context of the application)&lt;/p&gt;

&lt;p&gt;p_l := 10^(-15);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br&gt;
epsilon := 1.09*10^(-10);&lt;br&gt;
p_B := 1.09*10^(-8);&lt;/p&gt;

&lt;p&gt;n_A := 10^7;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br&gt;
k_A := 0;&lt;br&gt;
n_B := 10^8;&amp;nbsp;&lt;br&gt;
k_B := 0;&lt;/p&gt;

&lt;p&gt;then I define a function l(x,y):&lt;/p&gt;

&lt;p&gt;l := (x, y) -&amp;gt; x^k_A*(1 - x)^(n_A - k_A)*y^k_B*(1 - y)^(n_B - k_B)&lt;/p&gt;

&lt;p&gt;Now I use both with(GlobalOptimization) and with(Optimization) to maximize l(x,y) give some constraints and I get:&lt;/p&gt;

&lt;p&gt;GlobalSolve(l(x_1, y_1), x_1 = p_l .. epsilon, y_1 = p_B .. 1, maximize, initialpoint = [x_1 = 0, y_1 = 0]);&lt;br&gt;
&amp;nbsp; [-0., [x_1 = 1.09000000000000 10^(-10) &amp;nbsp; , y_1 = 0.633548870211381]]&lt;/p&gt;

&lt;p&gt;&lt;br&gt;
Maximize(l(x_1, y_1), x_1 = p_l .. epsilon, y_1 = p_B .. 1, initialpoint = [x_1 = 0, y_1 = 0]);&lt;br&gt;
&amp;nbsp;[0.33621648834727435318,&amp;nbsp; [x_1 = 1.00000000000000 10^(-15) &amp;nbsp; , y_1 = 1.0900000000000000000 10^(-8)&amp;nbsp; ] ]&lt;/p&gt;

&lt;p&gt;&amp;nbsp;&lt;/p&gt;

&lt;p&gt;Clearly the second answer is right and the first is wrong... I am not sure why the ``global optimazation&amp;#39;&amp;#39; is doing worse than the normal and free ``optimazation&amp;#39;&amp;#39;.. Am I using the GlobalSolve in a wrong way??&lt;/p&gt;
</itunes:summary>
      <description>&lt;p&gt;first I define some constants (note I may change the constants later based on the context of the application)&lt;/p&gt;

&lt;p&gt;p_l := 10^(-15);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;
epsilon := 1.09*10^(-10);&lt;br /&gt;
p_B := 1.09*10^(-8);&lt;/p&gt;

&lt;p&gt;n_A := 10^7;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;
k_A := 0;&lt;br /&gt;
n_B := 10^8;&amp;nbsp;&lt;br /&gt;
k_B := 0;&lt;/p&gt;

&lt;p&gt;then I define a function l(x,y):&lt;/p&gt;

&lt;p&gt;l := (x, y) -&amp;gt; x^k_A*(1 - x)^(n_A - k_A)*y^k_B*(1 - y)^(n_B - k_B)&lt;/p&gt;

&lt;p&gt;Now I use both with(GlobalOptimization) and with(Optimization) to maximize l(x,y) give some constraints and I get:&lt;/p&gt;

&lt;p&gt;GlobalSolve(l(x_1, y_1), x_1 = p_l .. epsilon, y_1 = p_B .. 1, maximize, initialpoint = [x_1 = 0, y_1 = 0]);&lt;br /&gt;
&amp;nbsp; [-0., [x_1 = 1.09000000000000 10^(-10) &amp;nbsp; , y_1 = 0.633548870211381]]&lt;/p&gt;

&lt;p&gt;&lt;br /&gt;
Maximize(l(x_1, y_1), x_1 = p_l .. epsilon, y_1 = p_B .. 1, initialpoint = [x_1 = 0, y_1 = 0]);&lt;br /&gt;
&amp;nbsp;[0.33621648834727435318,&amp;nbsp; [x_1 = 1.00000000000000 10^(-15) &amp;nbsp; , y_1 = 1.0900000000000000000 10^(-8)&amp;nbsp; ] ]&lt;/p&gt;

&lt;p&gt;&amp;nbsp;&lt;/p&gt;

&lt;p&gt;Clearly the second answer is right and the first is wrong... I am not sure why the ``global optimazation&amp;#39;&amp;#39; is doing worse than the normal and free ``optimazation&amp;#39;&amp;#39;.. Am I using the GlobalSolve in a wrong way??&lt;/p&gt;
</description>
      <guid>227978</guid>
      <pubDate>Fri, 04 Oct 2019 11:33:15 Z</pubDate>
      <itunes:author>weidade37211</itunes:author>
      <author>weidade37211</author>
    </item>
  </channel>
</rss>