21 views

Uploaded by Sutha Sangapillai

M FILE

save

- hw5sol
- Detection of Fatigue of Vehicular Driver Using Ski
- bsplines
- a puzzle of crore and egg
- String Permutation and Rod Cutting Problem
- Histogram Expansion-A Technique of Histogram Equlization
- ECE203Exp1WorkSheetV21
- Line No
- BM Assignment Solutions
- Ansys Commands and Acronyms
- Flow
- SSIS_2D_and_Multi-2D_workflow_OpendTect4.4.pdf
- New Health Index Analyses 052013
- labprog_lilst
- ANN Presentation
- Gopakumar G Back Propagation
- Sample Presentation2
- The Influence of Conditional Bias in Optimum Ultimate Pit Planning
- Maximization with Equality and Inequality Constraints_Lagrangian (1).pdf
- Testing22.pdf
- Campbell Dudek Smith 1970
- logistica transporte de carga
- Combined Simulated Annealing and Genetic Algorithm to Solve Optimization Problems
- Optimal Placement of PMUs by Integer Linear Programming
- A Review Paper on Voiced/Unvoiced Classification
- Process Dynamics and Control
- Optio Case
- Lect Class 25
- Z Transform Primer
- IMSBranchAssAssignment 4_Ruoyu
- Delay
- 130062907 Search Algorithms for Engineering Optimization
- Wk11 Case Study
- Simulink Handout
- Tank Control
- Intepretations of Multivariate Perofrmance
- ex-models
- Implementing of Multi Fuzzy Controllers for Multi Sensors to Steer Wheeled Mobile Robot 3rd ICMSAO J
- 04540464Application of the Hybrid Algorithm Combining Ant
- 2011 ISCAS Agostinelli Final Submission
- CE00039_2_cwk_0809
- phd theses
- wal00phd
- Validation of a Multivariable Relay-Based PID Autotuner With Specified
- 93492 Modeling Analysis and Simulation
- 04670465 Ph
- Estimation
- clad
- Rich Text Editor File
- Untitled
- case study
- mpc
- Z-L METHOD
- 4 tank process
- 10.1.1.59.3004
- Clad 5
- controller on-off
- Rich Text Editor File
- Rich Text Editor File

You are on page 1of 3

Bratton and J. Kennedy, "Defining a standard for part icle swarm optimization," IEEE SIS, 2007, pp. 120 127. popsize = 50; w = 0.72984; c1 = 2.05 * w; c2 = 2.05 * w; % % Search space parameters range = 5; %BBOB2009 range = 100; %CEC2013 xmin = -range * ones(1,DIM); xmax = range * ones(1,DIM); vmin = -range * ones(1,DIM); vmax = range * ones(1,DIM); % Random initial positions x = 2 * range * rand(popsize,DIM) - range; % zero for initial velocity -- A. Engelbrecht, "Particle Swarm Optimization: Velocity Initialization," IEEE CEC, 2012, pp. 70-77. v = zeros(popsize,DIM); % initialize personal best positions as initial positions pbest = x; pbestCosts = feval(fhd, x', functionNumber); numEvals = numEvals + popsize; % update lbest [lbest] = update_lbest(pbestCosts, x, popsize); maxevals = DIM * evalsPerDIM; maxgenerations = floor(maxevals/popsize); for generation = 2 : maxgenerations % Update velocity v = w*v + c1*rand(popsize,DIM).*(pbest-x) + c2*rand(popsize,DIM).*(lbest -x); % Clamp veloctiy oneForViolation = v < repmat(vmin,popsize,1); v = (1-oneForViolation).*v + oneForViolation.*repmat(vmin,popsize,1); oneForViolation = v > repmat(vmax,popsize,1); v = (1-oneForViolation).*v + oneForViolation.*repmat(vmax,popsize,1); % Update position x = x + v; % Reflect-Z for particles out of bounds -- S. Helwig, J. Branke, and S. Mostaghim, "Experimental Analysis of Bound Handling Techniques in Particle Swarm Optimization," IEEE TEC: 17(2), 2013, pp. 259-271 % reflect lower bound relectionAmount = repmat(xmin,popsize,1) - x; oneForNeedReflection = relectionAmount > zeros(popsize,DIM); relectionAmount = (1-oneForNeedReflection).*zeros(popsize,DIM) + oneForN eedReflection.*relectionAmount;

else lbest(1. end % Function to update lbest function [lbest] = update_lbest(costX. gbestCost = min(pbestCosts).1) . popsize) %particle 1 is neighbours with particle n=popsize sm(1. numEvals = numEvals + popsize. 1:2).*zeros(popsize. end end evalValues(1. popsize). pbestCosts(index) = newCosts(index).1). :) = x(index-1. oneForNeedReflection = relectionAmount < zeros(popsize. end for i = 2:popsize-1 . 1)= costX(1. popsize). % then reflect x = x + relectionAmount.*v + oneForNeedReflection.:) = x(index. end end [lbest] = update_lbest(pbestCosts.x. % then reflect x = x + relectionAmount. nextEval) = gbestCost.*repmat(xmax. sm(1.*repmat(xmin. % set velocity for reflected particles to zero v = (1-oneForNeedReflection).*zeros(popsize. 2:3)= costX(1.1). if numEvals >= evalPoints(nextEval) * maxevals evalValues(1. for index = 1:popsize if newCosts(index) < pbestCosts(index) pbest(index. [cost. 11) = gbestCost. relectionAmount = (1-oneForNeedReflection). functionNumber).:). x. :). and gbest newCosts = feval(fhd.*v + oneForNeedReflection. :). % Update pbest.*x + oneForNeedReflection. :) = x(popsize.DIM) + oneForN eedReflection. nextEval = nextEval + 1. % set velocity for reflected particles to zero v = (1-oneForNeedReflection).popsize. index] = min(sm).*x + oneForNeedReflection.pops ize.DI M).*zeros(popsize.DI M). % reflect upper bound relectionAmount = repmat(xmax. lbest. x.% clampfirst x = (1-oneForNeedReflection).*relectionAmount.pops ize.DIM). x'. % clampfirst x = (1-oneForNeedReflection). if index==1 lbest(1.

end % particle n=popsize is neighbours with particle 1 sm(1. [cost. :) = x(1. index] = min(sm). :) = x(i+index-2. index] = min(sm). :). :). :). end end . if index==3 lbest(popsize. 3)= costX(1. sm(1. [cost. 1). 1:2)= costX(1. :) = x(popsize-2+index. popsize-1:popsize). lbest(i. i-1:i+1). else lbest(popsize. 1:3)= costX(1.sm(1.

- hw5solUploaded bySrikar Varadaraj
- Detection of Fatigue of Vehicular Driver Using SkiUploaded byDharurendra Negara
- bsplinesUploaded byvhk427
- a puzzle of crore and eggUploaded byMitansh Jain
- String Permutation and Rod Cutting ProblemUploaded byWakil Khan
- Histogram Expansion-A Technique of Histogram EqulizationUploaded byesatjournals
- ECE203Exp1WorkSheetV21Uploaded byAnonymous WkbmWCa8M
- Line NoUploaded byganeshashokkuma3320
- BM Assignment SolutionsUploaded byMir Mazar
- Ansys Commands and AcronymsUploaded byRupali Patil
- FlowUploaded bymail2manshaa
- SSIS_2D_and_Multi-2D_workflow_OpendTect4.4.pdfUploaded byKrisna Hanjar Prastawa
- New Health Index Analyses 052013Uploaded byericsson3gpp
- labprog_lilstUploaded bykeerthihm
- ANN PresentationUploaded byManmadha Rao Guduru
- Gopakumar G Back PropagationUploaded bygggopus
- Sample Presentation2Uploaded byMerlin Mathew
- The Influence of Conditional Bias in Optimum Ultimate Pit PlanningUploaded bySebastian Astorquiza Trucco
- Maximization with Equality and Inequality Constraints_Lagrangian (1).pdfUploaded byAli Hyder Zaidi
- Testing22.pdfUploaded bydoomachaley
- Campbell Dudek Smith 1970Uploaded byrichardvas12
- logistica transporte de cargaUploaded byDaniel J Carvajal Tinoco
- Combined Simulated Annealing and Genetic Algorithm to Solve Optimization ProblemsUploaded byAh M Ed
- Optimal Placement of PMUs by Integer Linear ProgrammingUploaded bywvargas926
- A Review Paper on Voiced/Unvoiced ClassificationUploaded byInternational Journal for Scientific Research and Development - IJSRD
- Process Dynamics and ControlUploaded bya_saint_
- Optio CaseUploaded bynisarg
- Lect Class 25Uploaded byshashankmay18
- Z Transform PrimerUploaded byKumail Hasan Naqvi
- IMSBranchAssAssignment 4_RuoyuUploaded byRuoyu Tan

- DelayUploaded bySutha Sangapillai
- 130062907 Search Algorithms for Engineering OptimizationUploaded bySutha Sangapillai
- Wk11 Case StudyUploaded bySutha Sangapillai
- Simulink HandoutUploaded bySutha Sangapillai
- Tank ControlUploaded bySutha Sangapillai
- Intepretations of Multivariate PerofrmanceUploaded bySutha Sangapillai
- ex-modelsUploaded bySutha Sangapillai
- Implementing of Multi Fuzzy Controllers for Multi Sensors to Steer Wheeled Mobile Robot 3rd ICMSAO JUploaded bySutha Sangapillai
- 04540464Application of the Hybrid Algorithm Combining AntUploaded bySutha Sangapillai
- 2011 ISCAS Agostinelli Final SubmissionUploaded bySutha Sangapillai
- CE00039_2_cwk_0809Uploaded bySutha Sangapillai
- phd thesesUploaded bySutha Sangapillai
- wal00phdUploaded bySutha Sangapillai
- Validation of a Multivariable Relay-Based PID Autotuner With SpecifiedUploaded bySutha Sangapillai
- 93492 Modeling Analysis and SimulationUploaded bySutha Sangapillai
- 04670465 PhUploaded bySutha Sangapillai
- EstimationUploaded bySutha Sangapillai
- cladUploaded bySutha Sangapillai
- Rich Text Editor FileUploaded bySutha Sangapillai
- UntitledUploaded bySutha Sangapillai
- case studyUploaded bySutha Sangapillai
- mpcUploaded bySutha Sangapillai
- Z-L METHODUploaded bySutha Sangapillai
- 4 tank processUploaded bySutha Sangapillai
- 10.1.1.59.3004Uploaded bySutha Sangapillai
- Clad 5Uploaded bySutha Sangapillai
- controller on-offUploaded bySutha Sangapillai
- Rich Text Editor FileUploaded bySutha Sangapillai
- Rich Text Editor FileUploaded bySutha Sangapillai