Search Comments and Ratings

go

   
Date File Comment by Comment Rating
18 Nov 2014 Another Particle Swarm Toolbox Implementation of a PSO algorithm with the same syntax as the Genetic Algorithm Toolbox. Author: Sam

Sam (view profile)

  • 1 file
  • 228 downloads
  • 4.71875
Petar

Petar (view profile)

I have contacted you with a question about my fitness function. Hope for a positive answer. : )

5
14 Oct 2014 Another Particle Swarm Toolbox Implementation of a PSO algorithm with the same syntax as the Genetic Algorithm Toolbox. Author: Sam

Sam (view profile)

  • 1 file
  • 228 downloads
  • 4.71875
Onno Broekmans

5
14 Oct 2014 Another Particle Swarm Toolbox Implementation of a PSO algorithm with the same syntax as the Genetic Algorithm Toolbox. Author: Sam

Sam (view profile)

  • 1 file
  • 228 downloads
  • 4.71875
Onno Broekmans

5
07 Oct 2014 Another Particle Swarm Toolbox Implementation of a PSO algorithm with the same syntax as the Genetic Algorithm Toolbox. Author: Sam

Sam (view profile)

  • 1 file
  • 228 downloads
  • 4.71875
Sampada

How can I use this toolbox for object detection and tracking in video? Is there any readymade prog. available for the same using PSO? Pl. help

Comment only
28 Sep 2014 Another Particle Swarm Toolbox Implementation of a PSO algorithm with the same syntax as the Genetic Algorithm Toolbox. Author: Sam

Sam (view profile)

  • 1 file
  • 228 downloads
  • 4.71875
Jian Guo

Thank you for your share.

5
12 Sep 2014 Another Particle Swarm Toolbox Implementation of a PSO algorithm with the same syntax as the Genetic Algorithm Toolbox. Author: Sam

Sam (view profile)

  • 1 file
  • 228 downloads
  • 4.71875
Maria Esmeral

Good Morning,

I want to know if I need the optimization toolbox in order to use the pso.m function?

Thank you for your help

Comment only
03 Sep 2014 Another Particle Swarm Toolbox Implementation of a PSO algorithm with the same syntax as the Genetic Algorithm Toolbox. Author: Sam

Sam (view profile)

  • 1 file
  • 228 downloads
  • 4.71875
Anand

Anand (view profile)

Dear Sam !
thank you very much for providing very nice optimizing toolbox .
in my optimization problem i have 4 optimizing parameter. i want to plot it with generation (generation vs var(1) ,generation vs var(2),generation vs var(3) etc ...)

5
31 Aug 2014 Another Particle Swarm Toolbox Implementation of a PSO algorithm with the same syntax as the Genetic Algorithm Toolbox. Author: Sam

Sam (view profile)

  • 1 file
  • 228 downloads
  • 4.71875
amanita

5
28 Aug 2014 Another Particle Swarm Toolbox Implementation of a PSO algorithm with the same syntax as the Genetic Algorithm Toolbox. Author: Sam

Sam (view profile)

  • 1 file
  • 228 downloads
  • 4.71875
ZhG

ZhG (view profile)

I found something in one of your comments here. On 15 May 2013

"I've also made a small change to ensure that only feasible solutions are selected as global optima when the penalty-based constraint enforcement method is used."

What does this mean? We can obtain an relatively optimal result among all iterations? Is there an example of this kind of application. Or it is just set with options.ConstrBoundary = 'penalize' ? Thanks.

Comment only
26 Aug 2014 Another Particle Swarm Toolbox Implementation of a PSO algorithm with the same syntax as the Genetic Algorithm Toolbox. Author: Sam

Sam (view profile)

  • 1 file
  • 228 downloads
  • 4.71875
ZhG

ZhG (view profile)

And another problem about population size and generation. I assigned this kind of value to these two variables.
f.option.PopulationSize = 500000; % Same to GA.
f.options.Generations = 1000 ;

But I always obtain the result like this:
rt2 =

x: [1.8990 0.9206 2.0019 -0.3474 -0.0901]
fval: -1.2477
exitflag: 3
output: [1x1 struct]
population: [40x5 double]
scores: [40x1 double]
data1: [50x5 double]
real_v: [1x50 double]

The population dimension is 40*5.
I called the function this way:

fitnessfcn = str2func('mytest');
options = fitnessfcn('init') ;

issue1 = options;

issue1.fitnessfcn = fitnessfcn;
issue1.nvars = 5;
issue1.options.DemoMode = 'fast' ;

[x,fval,exitflag,output,population,scores] = pso(issue1);

Comment only
26 Aug 2014 Another Particle Swarm Toolbox Implementation of a PSO algorithm with the same syntax as the Genetic Algorithm Toolbox. Author: Sam

Sam (view profile)

  • 1 file
  • 228 downloads
  • 4.71875
ZhG

ZhG (view profile)

I fixed that problem.
But one more stupid question about the objective function. Anyway, maybe I didn't understand it correctly, for I have been using GA. In GA, it always generate the maximum value of the objective function. But, here with the PSO, how I can obtain the maximum value or a minimum value. Do I need to specify some constraints with the parameters such as Aineq bineq something? Anyone help? Thanks.

Comment only
26 Aug 2014 Another Particle Swarm Toolbox Implementation of a PSO algorithm with the same syntax as the Genetic Algorithm Toolbox. Author: Sam

Sam (view profile)

  • 1 file
  • 228 downloads
  • 4.71875
ZhG

ZhG (view profile)

Hello,

Does the toolbox work for the problems that variables are more than 2?
For example, I want to implement something like
y = a1*x1 + a2*x2 + ... + an*xn
n >= 5
In my problem, I need to find out several coefficients by optimizing the 1st equation. It means that I have 'n' variables. To do so, I need to find out 'n' coefficients as well. But I got a problem of your toolbox. I have already sent you an email with my codes. Thanks.

Comment only
07 Aug 2014 Another Particle Swarm Toolbox Implementation of a PSO algorithm with the same syntax as the Genetic Algorithm Toolbox. Author: Sam

Sam (view profile)

  • 1 file
  • 228 downloads
  • 4.71875
abolfazl

5
30 Jul 2014 Another Particle Swarm Toolbox Implementation of a PSO algorithm with the same syntax as the Genetic Algorithm Toolbox. Author: Sam

Sam (view profile)

  • 1 file
  • 228 downloads
  • 4.71875
Molong Duan

5
10 Jun 2014 Another Particle Swarm Toolbox Implementation of a PSO algorithm with the same syntax as the Genetic Algorithm Toolbox. Author: Sam

Sam (view profile)

  • 1 file
  • 228 downloads
  • 4.71875
Sam

Sam (view profile)

  • 1 file
  • 228 downloads
  • 4.71875

Stephen,

psoplotswarm is meant to plot particle positions in a 3-dimensional axes. I use it in the PSODEMO file to make it easier to visualize how the swarm behaves. IIRC the ijk variable is a 3-element array where you specify which dimension of your problem you want to plot (for example, if you have a problem with 12 dimensions and you want to plot the particle positions along the 4th, 7th, and 11th dimensions on a 3D plot).

Sam

Comment only
09 Jun 2014 Another Particle Swarm Toolbox Implementation of a PSO algorithm with the same syntax as the Genetic Algorithm Toolbox. Author: Sam

Sam (view profile)

  • 1 file
  • 228 downloads
  • 4.71875
Stephen Bush

What is the meaning of the ijk parameter of psoplotswarm(options,state,flag,ijk)? What is psoplotswarm() intended to plot?

As further background, I'm using psobinary() to optimize a two-dimensional array (adjacency matrix for a network).

Comment only
09 Jun 2014 Another Particle Swarm Toolbox Implementation of a PSO algorithm with the same syntax as the Genetic Algorithm Toolbox. Author: Sam

Sam (view profile)

  • 1 file
  • 228 downloads
  • 4.71875
Zed

Zed (view profile)

Hi Sam,

Great tool, I have been using the 2010 release with no problems. Just updated to the latest release 20140330 but found out that my upper/lower bounds LB/UB are now somehow getting ignored. I noticed that this issue was brought up by Erik and others below, and you seem to indicate that this was fixed. Was it fixed in this release? This bug is serious because my LB is positive yet the PSO is straying into negative values. Hope this could be fixed soon. I am running 8.0.0.783 (R2012b).

Thanks.

4
28 May 2014 Another Particle Swarm Toolbox Implementation of a PSO algorithm with the same syntax as the Genetic Algorithm Toolbox. Author: Sam

Sam (view profile)

  • 1 file
  • 228 downloads
  • 4.71875
math_network

What about the constraints handling?

4
23 May 2014 Another Particle Swarm Toolbox Implementation of a PSO algorithm with the same syntax as the Genetic Algorithm Toolbox. Author: Sam

Sam (view profile)

  • 1 file
  • 228 downloads
  • 4.71875
math_network

Dear Sam,
Thanks for powerful pso toolbox. What about the PSO TECHNICAL INFORMATION, such as the PSO algorithm.
A document ablout the Particle Swarm Optimization Toolbox for use with Matlab is needed.

Comment only
22 Apr 2014 Another Particle Swarm Toolbox Implementation of a PSO algorithm with the same syntax as the Genetic Algorithm Toolbox. Author: Sam

Sam (view profile)

  • 1 file
  • 228 downloads
  • 4.71875
Sam

Sam (view profile)

  • 1 file
  • 228 downloads
  • 4.71875

Hi parinya,

Can you email me a copy of your nonlinear constraints function through the Contact Author link? I will have a look at it.

Sam

Comment only
17 Apr 2014 Another Particle Swarm Toolbox Implementation of a PSO algorithm with the same syntax as the Genetic Algorithm Toolbox. Author: Sam

Sam (view profile)

  • 1 file
  • 228 downloads
  • 4.71875
parinya

Dear Sam,

Thanks for powerful pso toolbox. I have an error after running the code with nonlinear constraint. The error message is:
" Problem is infeasible due to nonlinear constraints"

I have checked that my nonlinear constraints is passed with my initial population that I supplied. What could be the possible place that I can take a look to fix this problem.

Thanks

Parinya

5
03 Apr 2014 Another Particle Swarm Toolbox Implementation of a PSO algorithm with the same syntax as the Genetic Algorithm Toolbox. Author: Sam

Sam (view profile)

  • 1 file
  • 228 downloads
  • 4.71875
Sam

Sam (view profile)

  • 1 file
  • 228 downloads
  • 4.71875

Thanks for pointing that out, Aman.

b should really be a column vector [2;1] so that it will fit the equation

[1 0 ; 0 1]*[x1; x2] ≤ [2; 1]

however it looks like GA is robust enough to check for and correct that error.

I will add a small piece of input-checking code in the next release so that PSO will yield the same behavior as GA.

Comment only
02 Apr 2014 Another Particle Swarm Toolbox Implementation of a PSO algorithm with the same syntax as the Genetic Algorithm Toolbox. Author: Sam

Sam (view profile)

  • 1 file
  • 228 downloads
  • 4.71875
Erik

Erik (view profile)

Sam, no problem :)

Comment only
02 Apr 2014 Another Particle Swarm Toolbox Implementation of a PSO algorithm with the same syntax as the Genetic Algorithm Toolbox. Author: Sam

Sam (view profile)

  • 1 file
  • 228 downloads
  • 4.71875
Aman Parkash

Sam,If PSO toolbox syntax same as GA toolbox so then I have found one a little bugs(but not with GA If using same syanx )for example: If I compare n run both GA n PSO syntax for two variable objective function.... pso(@(x)(x(1)^2+x(2)^2+x(1)),2,[1 0;0 1],[2 1]) showing "hozcat " and "psocheckinitialpopulation" error
...BUT ga(@(x)(x(1)^2+x(2)^2+x(1)),2,[1 0;0 1],[2 1]) result come out

Comment only
01 Apr 2014 Another Particle Swarm Toolbox Implementation of a PSO algorithm with the same syntax as the Genetic Algorithm Toolbox. Author: Sam

Sam (view profile)

  • 1 file
  • 228 downloads
  • 4.71875
Sam

Sam (view profile)

  • 1 file
  • 228 downloads
  • 4.71875

Aman, I'm glad your problem is working properly now. Sorry for the inconvenience! Erik, you are very welcome; is it OK if I add your name to the list of acknowledgements for this toolbox?

Comment only
01 Apr 2014 Another Particle Swarm Toolbox Implementation of a PSO algorithm with the same syntax as the Genetic Algorithm Toolbox. Author: Sam

Sam (view profile)

  • 1 file
  • 228 downloads
  • 4.71875
Aman Parkash

Erik,Sam thanks for tell n fix this bug.... now my all results are coming within range..

Comment only
01 Apr 2014 Another Particle Swarm Toolbox Implementation of a PSO algorithm with the same syntax as the Genetic Algorithm Toolbox. Author: Sam

Sam (view profile)

  • 1 file
  • 228 downloads
  • 4.71875
Aman Parkash

means that Despite giving the bounds within postive range but some reslts was coming out of range i.e. with negative also....

5
31 Mar 2014 Another Particle Swarm Toolbox Implementation of a PSO algorithm with the same syntax as the Genetic Algorithm Toolbox. Author: Sam

Sam (view profile)

  • 1 file
  • 228 downloads
  • 4.71875
Erik

Erik (view profile)

Sam, thanks for fixing the bug so quickly!

Comment only
31 Mar 2014 Another Particle Swarm Toolbox Implementation of a PSO algorithm with the same syntax as the Genetic Algorithm Toolbox. Author: Sam

Sam (view profile)

  • 1 file
  • 228 downloads
  • 4.71875
Sam

Sam (view profile)

  • 1 file
  • 228 downloads
  • 4.71875

Erik, I have discovered a typo in one of the helper functions for PSO which is causing the bug that you describe. I have submitted an update which should appear over the next few days. This should also improve performance for anyone who is using lower and upper bound constraints for their optimization problems.

Comment only
30 Mar 2014 Another Particle Swarm Toolbox Implementation of a PSO algorithm with the same syntax as the Genetic Algorithm Toolbox. Author: Sam

Sam (view profile)

  • 1 file
  • 228 downloads
  • 4.71875
Sam

Sam (view profile)

  • 1 file
  • 228 downloads
  • 4.71875

kerolos, there is an option to use binary inputs (call PSOBINARY instead of PSO) however I haven't implemented any integer inputs yet.

Erik, that is very curious behavior and I am getting the same results as you. Even stranger is getting a negative result if I set LB to less than 1. I will have to do some debugging to get to the bottom of this.

Cristina, sorry I took so long to get back to you. I haven't actually tried to program Pareto fronts before, so I will not be of much help to your problem. I will look into developing a multiobjective version of this toolbox as time allows, however I cannot make any guarantees as medical school has other duties for me to attend to at this time. Let me know if you find a way to make it work!

Matthias, that behavior is a result of the PSO algorithm not preserving the best point of every generation (unlike the genetic algorithm, which does). The algorithm proposed in Kennedy et al's book that I referred to above does not include such elite-preserving behavior, therefore I left it out of my code to maintain fidelity to their code. Ideally the swarm would stabilize in a region close to the global maximum anyway, so most of the time this is not a problem. If you are getting wildly different values between the historical best point found and the final best point, then the swarm has likely been terminated before it has found a stable equilibrium and I would not rely on those results. If the difference is within a very small margin of error, then you may choose which result to accept.

Comment only
29 Mar 2014 Another Particle Swarm Toolbox Implementation of a PSO algorithm with the same syntax as the Genetic Algorithm Toolbox. Author: Sam

Sam (view profile)

  • 1 file
  • 228 downloads
  • 4.71875
Kirti Wanjale

1
29 Mar 2014 Another Particle Swarm Toolbox Implementation of a PSO algorithm with the same syntax as the Genetic Algorithm Toolbox. Author: Sam

Sam (view profile)

  • 1 file
  • 228 downloads
  • 4.71875
Kirti Wanjale

2
29 Mar 2014 Another Particle Swarm Toolbox Implementation of a PSO algorithm with the same syntax as the Genetic Algorithm Toolbox. Author: Sam

Sam (view profile)

  • 1 file
  • 228 downloads
  • 4.71875
Kirti Wanjale

3
29 Mar 2014 Another Particle Swarm Toolbox Implementation of a PSO algorithm with the same syntax as the Genetic Algorithm Toolbox. Author: Sam

Sam (view profile)

  • 1 file
  • 228 downloads
  • 4.71875
Kirti Wanjale

4
28 Mar 2014 Another Particle Swarm Toolbox Implementation of a PSO algorithm with the same syntax as the Genetic Algorithm Toolbox. Author: Sam

Sam (view profile)

  • 1 file
  • 228 downloads
  • 4.71875
kerolos

thanks

this works great ;

can i use any options to make integer inputs for the four dimensions

thanks

Comment only
27 Mar 2014 Another Particle Swarm Toolbox Implementation of a PSO algorithm with the same syntax as the Genetic Algorithm Toolbox. Author: Sam

Sam (view profile)

  • 1 file
  • 228 downloads
  • 4.71875
Sam

Sam (view profile)

  • 1 file
  • 228 downloads
  • 4.71875

kerolos, try setting LB to [0, 0, 0, 0] and UB to [1, 1, 1, 1] and avoid using the linear constraints altogether.

Comment only
27 Mar 2014 Another Particle Swarm Toolbox Implementation of a PSO algorithm with the same syntax as the Genetic Algorithm Toolbox. Author: Sam

Sam (view profile)

  • 1 file
  • 228 downloads
  • 4.71875
kerolos

thanks for this great toolbox

I want some help using this toolbox for optimization of a 4 dimensional problem

I want an example of Aeq and beq

to saticify a constrain that all 4 dimensions values will be between 0 and 1

i tried this
% A=[ 1 ,-1 ;1 ,-1 ;1 ,-1 ;1 ,-1 ] , b=[ 1 ,0 ;1 ,0 ;1 ,0 ;1 ,0 ]
% A=[ 1 , 1 ,1,1 -1,-1,-1,-1] ,b= [ 1 , 1 ,1,1 0,0,0,0]

but no luck

Error using horzcat
Dimensions of matrices being concatenated are not consistent.

Error in psocheckinitialpopulation (line 36)
if (~isempty([Aineq,bineq]) &&
any(Aineq*state.Population(i,:)' - bineq >
options.TolCon)) ...

Error in pso (line 338)
[state,options] = psocheckinitialpopulation(state,...

I read the help

% x = pso(fitnessfcn,nvars,Aineq,bineq)
% Linear constraints, such that Aineq*x <= bineq. Aineq is a matrix of size
% nconstraints x nvars, while b is a column vector of length nvars.
%

could not understand very well

thanks .

5
27 Mar 2014 Another Particle Swarm Toolbox Implementation of a PSO algorithm with the same syntax as the Genetic Algorithm Toolbox. Author: Sam

Sam (view profile)

  • 1 file
  • 228 downloads
  • 4.71875
kerolos

5
13 Mar 2014 Another Particle Swarm Toolbox Implementation of a PSO algorithm with the same syntax as the Genetic Algorithm Toolbox. Author: Sam

Sam (view profile)

  • 1 file
  • 228 downloads
  • 4.71875
Erik

Erik (view profile)

Hi Sam. Thanks for this great function. I have found a small bug I believe. If I try to find the lowest value of a 1/x function between 1 and 10:
pso(@(x)1/x,1,[],[],[],[],1,10)
it returns x = 1. When I set the bound to 1.01 and 10:
pso(@(x)1/x,1,[],[],],[],1.01,10)
the lowest value is found at x = 10.

5
20 Feb 2014 Another Particle Swarm Toolbox Implementation of a PSO algorithm with the same syntax as the Genetic Algorithm Toolbox. Author: Sam

Sam (view profile)

  • 1 file
  • 228 downloads
  • 4.71875
Cristina

Hi Sam, thank you for the toolbox! I have tried to modify the code in order to get a multiobjective optimizer, by means of a adaptive weighted sum approach for the fitness. How can I write the code, in order to write out the Pareto points? I wrote for each generation k

for k=2:itr

if k>=2
% trypareto=(state.obj1(k)<state.obj1(1:(k-1)))&(state.obj2(k)<state.obj2(1:(k-1)));

%%%%%%%%%%%%%%%%%%%%%%%%
% if trypareto
paretobiet1(k)=state.obj1(k);
paretobiet2(k)=state.obj2(k);
paretofronte=[paretobiet1',paretobiet2'];

end
end

But it does not work well as it writes out equal points.Does anyone have any suggestion? thank you all.
Cristina

5
10 Feb 2014 Another Particle Swarm Toolbox Implementation of a PSO algorithm with the same syntax as the Genetic Algorithm Toolbox. Author: Sam

Sam (view profile)

  • 1 file
  • 228 downloads
  • 4.71875
longyan

hi, Sam. I am right now using PSO as a tool to minimize my fitness function. Actually i am using binary coding for the fitness function which i have already run it with GA previously, and it works fine. However, when i am using your binary PSO to calculate the same function, it best value in each generation is like random values, no patterns like gradually going down or at least sign of minimizing. I am wondering why is this happening. The binary coding fine for my case, cause it work well in GA. Will you be so kind to answer me this question, or i will post the details if you need to fix my trouble. Hope to get your reply soon.

Comment only
31 Jan 2014 Another Particle Swarm Toolbox Implementation of a PSO algorithm with the same syntax as the Genetic Algorithm Toolbox. Author: Sam

Sam (view profile)

  • 1 file
  • 228 downloads
  • 4.71875
Matthias

Hello,

I think I found a crucial bug (version 20130702): in my program I write down the test parameters if they fit better than in the iterations before. In my test PSO stopped after fulfilling a break condition and gave me a final parameter set, which fitted less than an intermediate result I wrote down before.

3
28 Jan 2014 Another Particle Swarm Toolbox Implementation of a PSO algorithm with the same syntax as the Genetic Algorithm Toolbox. Author: Sam

Sam (view profile)

  • 1 file
  • 228 downloads
  • 4.71875
sakthi priya

Hi sam
thank you so much for the code.i want to know can we give circuit netlist as input.

Comment only
21 Jan 2014 Another Particle Swarm Toolbox Implementation of a PSO algorithm with the same syntax as the Genetic Algorithm Toolbox. Author: Sam

Sam (view profile)

  • 1 file
  • 228 downloads
  • 4.71875
Sam

Sam (view profile)

  • 1 file
  • 228 downloads
  • 4.71875

Aman Parkash, what have you defined for Aineq and bineq? Aineq must have the same number of rows as bineq.

agus mujianto, I did not design my code to run in a Simulink environment, but I have heard from other users who have tried it with success. Your question pertains to aspects of the Simulink model that you are working with, which is not part of my toolbox. Unfortunately I will not be able to provide you with technical support for something that I did not create. I hope you find your answer soon!

Comment only
21 Jan 2014 Another Particle Swarm Toolbox Implementation of a PSO algorithm with the same syntax as the Genetic Algorithm Toolbox. Author: Sam

Sam (view profile)

  • 1 file
  • 228 downloads
  • 4.71875
Aman Parkash

Hi sam
I m trying to run a one objective with Linear inequalities Constraints ,But If I using ga then rulut coming well with defined ranges but ,but not with pso and showing the following errors:-

Error using horzcat
CAT arguments dimensions are not consistent.

Error in psocheckinitialpopulation (line 36)
if (~isempty([Aineq,bineq]) && any(Aineq*state.Population(i,:)' - bineq >
options.TolCon)) ...

Error in pso (line 338)
[state,options] = psocheckinitialpopulation(state,...

AND I SET THE OPTIONs :-

CognitiveAttraction: 0.5000
ConstrBoundary: 'soft'
AccelerationFcn: @psoiterate
DemoMode: 'off'
Display: 'final'
FitnessLimit: -Inf
Generations: 200
HybridFcn: []
InitialPopulation: []
InitialVelocities: []
KnownMin: []
OutputFcns: {}
PlotFcns: {}
PlotInterval: 1
PopInitRange: '[0;2]'
PopulationSize: 40
PopulationType: 'doubleVector'
SocialAttraction: 1.2500
StallGenLimit: '100'
StallTimeLimit: Inf
TimeLimit: Inf
TolCon: 1.0000e-06
TolFun: 1.0000e-06
UseParallel: 'never'
Vectorized: 'off'
VelocityLimit: []

So tell me what should I do for satisfied these constraints n for getting result.... thanks

Comment only
21 Jan 2014 Another Particle Swarm Toolbox Implementation of a PSO algorithm with the same syntax as the Genetic Algorithm Toolbox. Author: Sam

Sam (view profile)

  • 1 file
  • 228 downloads
  • 4.71875
agus mujianto

hi dear sam :
i have some problem with particle swarm optimization, i have simulink file and i want to optimize some part with PSO.

the scrip :
% store names
dv_names={'cs_min_pwr','cs_max_pwr','cs_charge_pwr','cs_min_off_time'};
resp_names={'combined_mpgge'};
con_names={'delta_soc','delta_trace','vinf.accel_test.results.time(1)','vinf.accel_test.results.time(2)','vinf.accel_test.results.time(3)','vinf.grade_test.results.grade'};

% define the problem
FUN='obj_fun_control';
NONLCON='con_fun_control';
X0=[5000 45000 5000 65]; % constraint violation (accel)
LB=[0,25000,0,10];
UB=[25000,50000,25000,1000];
A=[];
B=[];
Aeq=[];
Beq=[];

where i must place dv_names, resp_names?because it contain a lot of variable but i just want to optimize 4 variable.
thank you

3
20 Jan 2014 Another Particle Swarm Toolbox Implementation of a PSO algorithm with the same syntax as the Genetic Algorithm Toolbox. Author: Sam

Sam (view profile)

  • 1 file
  • 228 downloads
  • 4.71875
dab483

dab483 (view profile)

hi,does anyone knows where can i get pso toolbox that support multi objective optimization?

Comment only
18 Jan 2014 Another Particle Swarm Toolbox Implementation of a PSO algorithm with the same syntax as the Genetic Algorithm Toolbox. Author: Sam

Sam (view profile)

  • 1 file
  • 228 downloads
  • 4.71875
Aman Parkash

Hi dear Sam,
When I optimizing the objective function then I screwing in a problem of how to synatax the range of such ange of limit in Matlab script..e.g.
0<theta1<theta2<theta3<theta4<theta5<(pi/2)
please help me
....

4
06 Jan 2014 Another Particle Swarm Toolbox Implementation of a PSO algorithm with the same syntax as the Genetic Algorithm Toolbox. Author: Sam

Sam (view profile)

  • 1 file
  • 228 downloads
  • 4.71875
Bing

Bing (view profile)

5
20 Dec 2013 Another Particle Swarm Toolbox Implementation of a PSO algorithm with the same syntax as the Genetic Algorithm Toolbox. Author: Sam

Sam (view profile)

  • 1 file
  • 228 downloads
  • 4.71875
Sam

Sam (view profile)

  • 1 file
  • 228 downloads
  • 4.71875

Sanjaya, I am glad that you were able to find the answer to your question. After thinking about your problem I have also thought of some improvements to the code that I will implement in the near future.

Natanael, the error looks like it is coming from the objective function which you supplied.

I have recently received some emails from more community members asking for help using this toolbox. As I have mentioned before, I cannot guarantee that I will be able to respond to your particular questions in a timely or sufficient manner. I have provided demonstration functions and comprehensive help documentation with this toolbox, as well as links to further information which is posted in the file description above. Please refer to those sources of information to find the answers to your questions.

If your question is time-sensitive and related to academic homework, please post them to the community newsgroup so that more people will be able to see and respond to your question.

Comment only

Contact us