First of all I apologize for my strong word to you. I am very sorry. Yes your coding is very useful to me. Before you write I have already taken the ConstrBoundaryas soft instead of penalize and became successful. Thank you very much.
It is very sad that you have not replied my query till yet.Again I am facing another problem with your code which I am explaining.
I am getting the fitness function from a simulink file. The simulink file will run if the variables lie within lower bound and upper bound.But with your code sometimes the variables exceed the lower bound or upper bound so that the simulink file is not able to execute and it shows error.So please help me as soon as possible. Thanks.
I have to optimize 16 parameters. Out of which the first nine parameters are in the range of zero to one but the rest seven variables are in the range of one to four (only integers).So please help me to use your codings. Is your coding is useful for mixed integer constraints?Again is it useful for 16 variables?
Anticipating a quick reply.Thanking you.
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).
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).
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 220.127.116.113 (R2012b).