<rss xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" version="2.0">
  <channel>
    <title>MaplePrimes - comments on Post, Get help</title>
    <link>http://www.mapleprimes.com/posts/37139-Get-Help</link>
    <language>en-us</language>
    <copyright>2026 Maplesoft, A Division of Waterloo Maple Inc.</copyright>
    <generator>Maplesoft Document System</generator>
    <lastBuildDate>Thu, 11 Jun 2026 09:05:28 GMT</lastBuildDate>
    <pubDate>Thu, 11 Jun 2026 09:05:28 GMT</pubDate>
    <itunes:subtitle />
    <itunes:summary />
    <description>The latest comments added to the Post, Get help</description>
    <image>
      <url>http://www.mapleprimes.com/images/mapleprimeswhite.jpg</url>
      <title>MaplePrimes - comments on Post, Get help</title>
      <link>http://www.mapleprimes.com/posts/37139-Get-Help</link>
    </image>
    <item>
      <title>probably</title>
      <link>http://www.mapleprimes.com/posts/37139-Get-Help?ref=Feed:MaplePrimes:Get help:Comments#comment65261</link>
      <itunes:summary>probably you need to hire someone who knows both languages to do the translation
--- 
G A Edgar</itunes:summary>
      <description>The latest comments added to the Post, Get help</description>
      <guid>65261</guid>
      <pubDate>Mon, 22 Jun 2009 18:08:40 Z</pubDate>
      <itunes:author>edgar</itunes:author>
      <author>edgar</author>
    </item>
    <item>
      <title>FromMFile</title>
      <link>http://www.mapleprimes.com/posts/37139-Get-Help?ref=Feed:MaplePrimes:Get help:Comments#comment65262</link>
      <itunes:summary>&lt;p&gt;I haven't done much translating back and forth with Maple and Matlab, but you might using &lt;a href="http://www.maplesoft.com/support/help/view.aspx?path=Matlab/FromMFile"&gt;FromMFile.&lt;/a&gt;&lt;/p&gt;</itunes:summary>
      <description>The latest comments added to the Post, Get help</description>
      <guid>65262</guid>
      <pubDate>Mon, 22 Jun 2009 18:26:25 Z</pubDate>
      <itunes:author>Tim Vrablik</itunes:author>
      <author>Tim Vrablik</author>
    </item>
    <item>
      <title>Hello all,
 
Thank you so</title>
      <link>http://www.mapleprimes.com/posts/37139-Get-Help?ref=Feed:MaplePrimes:Get help:Comments#comment65263</link>
      <itunes:summary>&lt;p&gt;Hello all,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thank you so much, but I have the algorithm of this method, could any one help to write it in maple.&lt;/p&gt;
&lt;p&gt;Regards.&lt;/p&gt;
&lt;p&gt;the algorithm:&lt;font face="BookAntiqua" size="1"&gt;After finding the two best values, the particle updates its velocity and position according to equations (1) and (2) respectively.&lt;/font&gt;&lt;font face="TimesNewRoman" size="1"&gt;
&lt;p align="left"&gt;(vk+1) i&amp;nbsp;=w(vk) i + c1 r1&amp;nbsp; (pbest i - (xk) i ) + c2 r2 (gbestk -&amp;nbsp;(xk)&lt;/p&gt;
&lt;/font&gt;&lt;font face="TimesNewRoman" size="1"&gt;i &lt;/font&gt;&lt;font face="TimesNewRoman" size="1"&gt;)&lt;/font&gt;&lt;font face="TimesNewRoman" size="1"&gt;&lt;font face="TimesNewRoman" size="2"&gt;
&lt;p align="left"&gt;(xk+1) i= (xk)i + (vk+1) i&lt;/p&gt;
&lt;/font&gt;&lt;/font&gt;&lt;font face="BookAntiqua" size="1"&gt;
&lt;p align="left"&gt;where&amp;nbsp;(&lt;/p&gt;
&lt;p align="left"&gt;The 1&lt;/p&gt;
&lt;/font&gt;&lt;font face="TimesNewRoman" size="1"&gt;v &lt;/font&gt;&lt;font face="TimesNewRoman" size="1"&gt;k) i &amp;nbsp;&lt;/font&gt;&lt;font face="BookAntiqua" size="1"&gt;is the velocity of i&lt;/font&gt;&lt;font face="BookAntiqua" size="1"&gt;th &lt;/font&gt;&lt;font face="BookAntiqua" size="1"&gt;particle at the k&lt;/font&gt;&lt;font face="BookAntiqua" size="1"&gt;th &lt;/font&gt;&lt;font face="BookAntiqua" size="1"&gt;iteration, (&lt;/font&gt;&lt;font face="TimesNewRoman" size="2"&gt;x&lt;/font&gt;&lt;font face="TimesNewRoman" size="1"&gt;k) &lt;/font&gt;&lt;font face="BookAntiqua" size="1"&gt;is current the solution (or position) of the i&lt;/font&gt;&lt;font face="BookAntiqua" size="1"&gt;th &lt;/font&gt;&lt;font face="BookAntiqua" size="1"&gt;particle. r&lt;/font&gt;&lt;font face="BookAntiqua" size="1"&gt;1 &lt;/font&gt;&lt;font face="BookAntiqua" size="1"&gt;and r&lt;/font&gt;&lt;font face="BookAntiqua" size="1"&gt;2 &lt;/font&gt;&lt;font face="BookAntiqua" size="1"&gt;are random numbers generated uniformly between 0 and 1. c&lt;/font&gt;&lt;font face="BookAntiqua" size="1"&gt;1 &lt;/font&gt;&lt;font face="BookAntiqua" size="1"&gt;is the self-confidence (cognitive) factor and c&lt;/font&gt;&lt;font face="BookAntiqua" size="1"&gt;2 &lt;/font&gt;&lt;font face="BookAntiqua" size="1"&gt;is the swarm confidence (social) factor. Usually c&lt;/font&gt;&lt;font face="BookAntiqua" size="1"&gt;1 &lt;/font&gt;&lt;font face="BookAntiqua" size="1"&gt;and c&lt;/font&gt;&lt;font face="BookAntiqua" size="1"&gt;2 &lt;/font&gt;&lt;font face="BookAntiqua" size="1"&gt;are in the range from 1.5 to 2.5. Finally, w is the inertia factor that takes linearly decreasing values downward from 1 to 0 according to a predefined number of iterations as recommended by Haupt and Haupt [2004].&lt;/font&gt;&lt;font face="BookAntiqua" size="1"&gt;st &lt;/font&gt;&lt;font face="BookAntiqua" size="1"&gt;term in equation (1) represents the effect of the inertia of the particle, the 2&lt;/font&gt;&lt;font face="BookAntiqua" size="1"&gt;nd &lt;/font&gt;&lt;font face="BookAntiqua" size="1"&gt;term represents the particle memory influence, and the 3&lt;/font&gt;&lt;font face="BookAntiqua" size="1"&gt;rd &lt;/font&gt;&lt;font face="BookAntiqua" size="1"&gt;term represents the swarm (society)influence.. The velocities of the particles on each dimension may be clamped to a maximum velocity &lt;/font&gt;&lt;b&gt;&lt;font face="BookAntiqua,Bold" size="1"&gt;V&lt;/font&gt;&lt;font face="BookAntiqua,Bold" size="1"&gt;max&lt;/font&gt;&lt;font face="BookAntiqua" size="1"&gt;, which is a parameter specified by the user. If the sum of accelerations causes thevelocity on that dimension to exceed &lt;/font&gt;&lt;b&gt;&lt;font face="BookAntiqua,Bold" size="1"&gt;V&lt;/font&gt;&lt;font face="BookAntiqua,Bold" size="1"&gt;max&lt;/font&gt;&lt;font face="BookAntiqua" size="1"&gt;, then this velocity is limited to &lt;/font&gt;&lt;b&gt;&lt;font face="BookAntiqua,Bold" size="1"&gt;V&lt;/font&gt;&lt;font face="BookAntiqua,Bold" size="1"&gt;max &lt;/font&gt;&lt;font face="BookAntiqua" size="1"&gt;[Haupt and Haupt 2004]. Another type of clamping is to clamp the position of the current solution to a certain range in which the solution has valid value, otherwise the solution is meaningless [Haupt and Haupt 2004]. In this Chapter, position clamping is applied with no limitation on the velocity values.&lt;/font&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;br /&gt;
&lt;/b&gt;&lt;/b&gt;&lt;/b&gt;&lt;/p&gt;
&lt;p align="left"&gt;PSO is initialized with a group of random particles (solutions) and then searches for optima by updating generations. During every iteration, each particle is updated by following two&amp;quot;best&amp;quot; values. The first one is the position vector of the best solution (fitness) this particle hasachieved so far. The fitness value is also stored. This position is called position that is tracked by the particle swarm optimizer is the best position, obtained so far, by any particle in the population. This best position is the current global best and is called&lt;b&gt;&lt;i&gt;&lt;font face="BookAntiqua,BoldItalic" size="1"&gt;gbest&amp;nbsp;&amp;nbsp;&lt;/font&gt;&lt;/i&gt;&lt;/b&gt;&lt;/p&gt;</itunes:summary>
      <description>The latest comments added to the Post, Get help</description>
      <guid>65263</guid>
      <pubDate>Tue, 23 Jun 2009 07:18:08 Z</pubDate>
      <itunes:author>ahmedluss</itunes:author>
      <author>ahmedluss</author>
    </item>
  </channel>
</rss>