<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent changes to bugs</title><link href="https://sourceforge.net/p/psotoolbox/bugs/" rel="alternate"/><link href="https://sourceforge.net/p/psotoolbox/bugs/feed.atom" rel="self"/><id>https://sourceforge.net/p/psotoolbox/bugs/</id><updated>2008-02-18T10:44:51Z</updated><subtitle>Recent changes to bugs</subtitle><entry><title>some bugs in neighborhood</title><link href="https://sourceforge.net/p/psotoolbox/bugs/11/" rel="alternate"/><published>2008-02-18T10:44:51Z</published><updated>2008-02-18T10:44:51Z</updated><author><name>Anonymous</name><uri>https://sourceforge.net/u/userid-None/</uri></author><id>https://sourceforge.net33b56740ed87a228e804c98f3932333137f3abf5</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;some bugs was reported in the previous report.&lt;br /&gt;
1- line 95: SParam-&amp;gt;SParams&lt;br /&gt;
2- line 142: psoOptionsSParams-&amp;gt;psoOptions.SParams&lt;/p&gt;
&lt;p&gt;there are other logical bugs dealing with neighborhood.&lt;br /&gt;
the codes in lines 127-130, that are:&lt;/p&gt;
&lt;p&gt;for i = 1:SwarmSize&lt;br /&gt;
[fNBest(i), nb(i)] = min(fSwarm( find(nhood(i)) ));&lt;br /&gt;
B(i, :) = Swarm(nb(i), :);&lt;br /&gt;
end&lt;/p&gt;
&lt;p&gt;must replace with:&lt;/p&gt;
&lt;p&gt;for i = 1:SwarmSize&lt;br /&gt;
[fNBest, nb] = min(fSwarm( nhood(i,:) ));&lt;br /&gt;
B(i, :) = Swarm(nhood(i,nb), :);&lt;br /&gt;
end&lt;/p&gt;
&lt;p&gt;Old codes always set the particle number 1 as best neighbor for all of the particles, but new codes are correct!&lt;/p&gt;
&lt;p&gt;(bugs fixed by Seyed Ehsan Safavieh, e.safavieh@aut.ac.ir)&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>2 lines wrong (typos) in pso.m (related to neighborhood)</title><link href="https://sourceforge.net/p/psotoolbox/bugs/10/" rel="alternate"/><published>2007-04-27T10:36:32Z</published><updated>2007-04-27T10:36:32Z</updated><author><name>Anonymous</name><uri>https://sourceforge.net/u/userid-None/</uri></author><id>https://sourceforge.netf031f0a41e7bc36af4df81ae8b665ae7d94b934c</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Line 95: SParam instead of SParams. Corrected:&lt;br /&gt;
lo = mod(i-psoOptions.SParams.Nhood:i+psoOptions.SParams.Nhood, SwarmSize);&lt;/p&gt;
&lt;p&gt;Line 142:psoOptionsSParams instead of psoOptions.SParams. Corrected:&lt;/p&gt;
&lt;p&gt;VStep = w_now*VStep + psoOptions.SParams.c1*R1.*(PBest-Swarm) + psoOptions.SParams.c2*R2.*(A-Swarm) + psoOptions.SParams.c3*R3.*(B-Swarm);&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>bug report</title><link href="https://sourceforge.net/p/psotoolbox/bugs/9/" rel="alternate"/><published>2006-11-17T06:03:02Z</published><updated>2006-11-17T06:03:02Z</updated><author><name>Anonymous</name><uri>https://sourceforge.net/u/userid-None/</uri></author><id>https://sourceforge.net5992ce7e5ad8f01fa52ebdb398ba6666b1ccab81</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;when i change flags.Neighbor=1&lt;/p&gt;
&lt;p&gt;some bugs appears.&lt;/p&gt;
&lt;p&gt;see:&lt;/p&gt;
&lt;p&gt;psoOptions = get_psoOptions&lt;/p&gt;
&lt;p&gt;psoOptions = &lt;/p&gt;
&lt;p&gt;Flags: [1x1 struct]&lt;br /&gt;
Vars: [1x1 struct]&lt;br /&gt;
SParams: [1x1 struct]&lt;br /&gt;
Obj: [1x1 struct]&lt;br /&gt;
Terminate: [1x1 struct]&lt;br /&gt;
Disp: [1x1 struct]&lt;br /&gt;
Save: [1x1 struct]&lt;br /&gt;
Fuzzy: [1x1 struct]&lt;/p&gt;
&lt;p&gt;&amp;gt;&amp;gt; [fxmin, xmin, Swarm, history] = PSO(psoOptions)&lt;br /&gt;
??? Reference to non-existent field 'SParam'.&lt;/p&gt;
&lt;p&gt;Error in ==&amp;gt; D:\MATLAB6p5\toolbox\psotb\psotb-beta-0.3\pso.m&lt;br /&gt;
On line 95  ==&amp;gt;         lo = mod(i-psoOptions.SParam.Nhood:i+psoOptions.SParam.Nhood, SwarmSize);&lt;/p&gt;
&lt;p&gt;myemail:   VSWR@163.com&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>linear inertia</title><link href="https://sourceforge.net/p/psotoolbox/bugs/7/" rel="alternate"/><published>2006-01-31T09:01:27Z</published><updated>2006-01-31T09:01:27Z</updated><author><name/><uri>https://sourceforge.net</uri></author><id>https://sourceforge.netec242b68cee328d354c25cf16180243080179b77</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Linearly decreasing inertia stops at value different &lt;br /&gt;
(by exactly one step) from the desired final value, e.&lt;br /&gt;
g. inertia 0.95 -&amp;gt; 0.4 in 0.7 of 1000 iterations stops &lt;br /&gt;
decreasing at:&lt;br /&gt;
700th iteration with value 0.400786. Solution (pso.m):&lt;/p&gt;
&lt;p&gt;1)&lt;br /&gt;
if (iter&amp;lt;=w_varyfor+1) &amp;amp; (iter &amp;gt; 1)&lt;br /&gt;
or 2)&lt;br /&gt;
inertdec = (w_start-w_end)/(w_varyfor-1);&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Bugs!</title><link href="https://sourceforge.net/p/psotoolbox/bugs/6/" rel="alternate"/><published>2005-11-13T12:38:23Z</published><updated>2005-11-13T12:38:23Z</updated><author><name>Anonymous</name><uri>https://sourceforge.net/u/userid-None/</uri></author><id>https://sourceforge.neta5e699d44036d09c70490a590745da6f9602b1a8</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I have three suggestions:&lt;/p&gt;
&lt;p&gt;(1) The PSO does not take multiple bounds. For &lt;br /&gt;
example, if we are optimising three parameters each &lt;br /&gt;
with its own bounds, PSO should be able to handle that!!&lt;/p&gt;
&lt;p&gt;(2) The bounds are only used for the first Swarm. A &lt;br /&gt;
problem arises when we only need a value between , &lt;br /&gt;
say [0 5] space. The best value is often outside the &lt;br /&gt;
bounds!!&lt;/p&gt;
&lt;p&gt;(3) This is a question rather than a suggestion&lt;/p&gt;
&lt;p&gt;Suppose  a swarmsize=100 with 10 iteration. The best i &lt;br /&gt;
get seem to be the first element of the swarm in that &lt;br /&gt;
iteration. Any suggestion??&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>k</title><link href="https://sourceforge.net/p/psotoolbox/bugs/5/" rel="alternate"/><published>2005-11-13T12:24:22Z</published><updated>2005-11-13T12:24:22Z</updated><author><name>Anonymous</name><uri>https://sourceforge.net/u/userid-None/</uri></author><id>https://sourceforge.netb76e80b169ce311403763879de15e53e2f525178</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;kk&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>about Swarm</title><link href="https://sourceforge.net/p/psotoolbox/bugs/4/" rel="alternate"/><published>2005-06-26T12:38:05Z</published><updated>2005-06-26T12:38:05Z</updated><author><name>Anonymous</name><uri>https://sourceforge.net/u/userid-None/</uri></author><id>https://sourceforge.net3ddf1b10a2a77110e847369c2cf806130c6b3dff</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;I am new hand in using PSO. I met a problem when I &lt;br /&gt;
used this PSO package to calbirate a hydrological &lt;br /&gt;
model. The PSO will generate minus parameters in &lt;br /&gt;
iteration process when I call my simuluation model. The &lt;br /&gt;
PSO should give me positive parameters when I fix the &lt;br /&gt;
lwbnd and upbnd in positive range. Any suggestion?&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>PSO will generate minus parameters</title><link href="https://sourceforge.net/p/psotoolbox/bugs/3/" rel="alternate"/><published>2005-06-26T12:29:50Z</published><updated>2005-06-26T12:29:50Z</updated><author><name>Anonymous</name><uri>https://sourceforge.net/u/userid-None/</uri></author><id>https://sourceforge.net3ded21d43513cfc3db7013a1521447be2b61c7f5</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;&amp;amp;#65321;&amp;amp;#12288;&amp;amp;#65345;&amp;amp;#65357;&amp;amp;#12288;&amp;amp;#65345;&amp;amp;#12288;&amp;amp;#65358;&amp;amp;#65349;&amp;amp;#65367;&amp;amp;#12288;&amp;amp;#65352;&amp;amp;#65345;&amp;amp;#65358;&amp;amp;#65348;&amp;amp;#12288;&amp;amp;#65353;&amp;amp;#65358;&amp;amp;#12288;&amp;amp;#65365;&amp;amp;#65363;&amp;amp;#65353;&amp;amp;#65358;&amp;amp;#65351;&amp;amp;#12288;&amp;amp;#65328;&amp;amp;#65331;&amp;amp;#65327;&amp;amp;#65294;&amp;amp;#65321;&amp;amp;#12288;&amp;amp;#65357;&amp;amp;#65349;&amp;amp;#65364;&amp;amp;#12288;&amp;amp;#65345;&amp;amp;#12288;&amp;amp;#65360;&amp;amp;#65362;&amp;amp;#65359;&amp;amp;#65346;&amp;amp;#65356;&lt;br /&gt;
&amp;amp;#65349;&amp;amp;#65357;&amp;amp;#12288;&amp;amp;#65367;&amp;amp;#65352;&amp;amp;#65349;&amp;amp;#65358;&amp;amp;#12288;I  use&amp;amp;#65348; this PSO&amp;amp;#12288;&amp;amp;#65360;&amp;amp;#65345;&amp;amp;#65347;&amp;amp;#65355;&amp;amp;#65345;&amp;amp;#65351;&amp;amp;#65349; to calibrate a &lt;br /&gt;
hydrological model.&amp;amp;#12288;&amp;amp;#65332;&amp;amp;#65352;&amp;amp;#65349;&amp;amp;#12288;&amp;amp;#65328;&amp;amp;#65331;&amp;amp;#65327;&amp;amp;#12288;&amp;amp;#65367;&amp;amp;#65353;&amp;amp;#65356;&amp;amp;#65356;&amp;amp;#12288;&amp;amp;#65351;&amp;amp;#65349;&amp;amp;#65358;&amp;amp;#65349;&amp;amp;#65362;&amp;amp;#65345;&amp;amp;#65364;&amp;amp;#65349;&amp;amp;#12288;&amp;amp;#65357;&amp;amp;#65353;&amp;amp;#65358;&amp;amp;#65365;&amp;amp;#65363;&amp;amp;#65360;&lt;br /&gt;
&amp;amp;#65345;&amp;amp;#65362;&amp;amp;#65345;&amp;amp;#65357;&amp;amp;#65349;&amp;amp;#65364;&amp;amp;#65349;&amp;amp;#65362;&amp;amp;#65363;&amp;amp;#12288;&amp;amp;#65353;&amp;amp;#65358;&amp;amp;#12288;&amp;amp;#65353;&amp;amp;#65364;&amp;amp;#65349;&amp;amp;#65362;&amp;amp;#65345;&amp;amp;#65364;&amp;amp;#65353;&amp;amp;#65359;&amp;amp;#65358;&amp;amp;#12288;&amp;amp;#65360;&amp;amp;#65362;&amp;amp;#65359;&amp;amp;#65347;&amp;amp;#65349;&amp;amp;#65363;&amp;amp;#65363;&amp;amp;#65294;&amp;amp;#65316;&amp;amp;#65349;&amp;amp;#65350;&amp;amp;#65353;&amp;amp;#65358;&amp;amp;#65353;&amp;amp;#65364;&amp;amp;#65349;&amp;amp;#65356;&amp;amp;#65369;&amp;amp;#12288;&amp;amp;#65364;&amp;amp;#65352;&amp;amp;#65353;&amp;amp;#65363;&amp;amp;#12288;&amp;amp;#65367;&amp;amp;#65353;&amp;amp;#65356;&amp;amp;#65356;&lt;br /&gt;
&amp;amp;#12288;&amp;amp;#65351;&amp;amp;#65349;&amp;amp;#65358;&amp;amp;#65349;&amp;amp;#65362;&amp;amp;#65345;&amp;amp;#65364;&amp;amp;#65353;&amp;amp;#65359;&amp;amp;#65358;&amp;amp;#12288;&amp;amp;#65349;&amp;amp;#65362;&amp;amp;#65362;&amp;amp;#65359;&amp;amp;#65362;&amp;amp;#12288;&amp;amp;#65367;&amp;amp;#65352;&amp;amp;#65349;&amp;amp;#65358;&amp;amp;#12288;&amp;amp;#65321;&amp;amp;#12288;&amp;amp;#65347;&amp;amp;#65345;&amp;amp;#65356;&amp;amp;#65356;&amp;amp;#12288;&amp;amp;#65357;&amp;amp;#65369;&amp;amp;#12288;&amp;amp;#65363;&amp;amp;#65353;&amp;amp;#65357;&amp;amp;#65365;&amp;amp;#65345;&amp;amp;#65364;&amp;amp;#65353;&amp;amp;#65359;&amp;amp;#65358;&amp;amp;#12288;&amp;amp;#65357;&amp;amp;#65359;&lt;br /&gt;
&amp;amp;#65348;&amp;amp;#65349;&amp;amp;#65356;&amp;amp;#65294;&amp;amp;#65313;&amp;amp;#65358;&amp;amp;#65369;&amp;amp;#12288;&amp;amp;#65363;&amp;amp;#65365;&amp;amp;#65351;&amp;amp;#65351;&amp;amp;#65349;&amp;amp;#65363;&amp;amp;#65364;&amp;amp;#65353;&amp;amp;#65359;&amp;amp;#65358;&amp;amp;#65311;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>There is a problem with Chi</title><link href="https://sourceforge.net/p/psotoolbox/bugs/2/" rel="alternate"/><published>2005-06-12T22:09:46Z</published><updated>2005-06-12T22:09:46Z</updated><author><name>Anonymous</name><uri>https://sourceforge.net/u/userid-None/</uri></author><id>https://sourceforge.net03cd7f93ff5a9c7e0895e4315c8b6457660cd36f</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;The toolbox has an error in the actualization of the&lt;br /&gt;
velocities&lt;/p&gt;
&lt;p&gt;% Calculate Velocity&lt;br /&gt;
if ~psoOptions.Flags.Neighbor %Normal&lt;br /&gt;
VStep = w_now*VStep +&lt;br /&gt;
psoOptions.SParams.c1*R1.*(PBest-Swarm) +&lt;br /&gt;
psoOptions.SParams.c2*R2.*(A-Swarm);&lt;br /&gt;
else %With neighborhood&lt;br /&gt;
R3 = rand(SwarmSize, psoOptions.Vars.Dim);&lt;br /&gt;
%random nos for neighborhood&lt;br /&gt;
VStep = w_now*VStep +&lt;br /&gt;
psoOptions.SParams.c1*R1.*(PBest-Swarm) +&lt;br /&gt;
psoOptionsSParams.c2*R2.*(A-Swarm) +&lt;br /&gt;
psoOptionsSParams.c3*R3.*(B-Swarm);&lt;br /&gt;
end&lt;/p&gt;
&lt;p&gt;%Adding Chi Actualization (Correction)&lt;/p&gt;
&lt;p&gt;VStep = psoOptions.SParams.Chi * VStep&lt;/p&gt;
&lt;p&gt;% Apply Vmax Operator for v &amp;gt; Vmax&lt;br /&gt;
changeRows = VStep &amp;gt; psoOptions.SParams.Vmax;&lt;br /&gt;
VStep(find(changeRows)) = psoOptions.SParams.Vmax;&lt;br /&gt;
% Apply Vmax Operator for v &amp;lt; -Vmax&lt;br /&gt;
changeRows = VStep &amp;lt; -psoOptions.SParams.Vmax;&lt;br /&gt;
VStep(find(changeRows)) = -psoOptions.SParams.Vmax;&lt;/p&gt;
&lt;p&gt;% ::UPDATE POSITIONS OF PARTICLES:: (Corrected)&lt;br /&gt;
Swarm = Swarm +  VStep;    % Evaluate new Swarm&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Continuation of the previous update to calculate global best</title><link href="https://sourceforge.net/p/psotoolbox/bugs/1/" rel="alternate"/><published>2004-10-19T14:27:17Z</published><updated>2004-10-19T14:27:17Z</updated><author><name>Anonymous</name><uri>https://sourceforge.net/u/userid-None/</uri></author><id>https://sourceforge.net0668523ac2e343f83fada3403e921ef86f9472bd</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;There was a bug that was reported by Konstantinos E. &lt;br /&gt;
Parsopoulos about choosing the global best in every &lt;br /&gt;
iteration. This was partially fixed by the amendment in &lt;br /&gt;
line 165 of the alpha version . However, the bug still &lt;br /&gt;
remains in the beta version.&lt;/p&gt;
&lt;p&gt;In line 121&lt;/p&gt;
&lt;p&gt;A = repmat(Swarm(g,:), SwarmSize, 1); &lt;/p&gt;
&lt;p&gt;should read as&lt;/p&gt;
&lt;p&gt;A = repmat(Best, SwarmSize, 1);&lt;/p&gt;
&lt;p&gt;This is because Swarm(g,:) would end up selecting the &lt;br /&gt;
particle for that iteration instead of the global best &lt;br /&gt;
throughout the history of iterations.&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>