使用pso求最小化一函數(shù)
matlab程式碼,寫的非常簡潔(不到100行),且還包括了2維的圖形展示,和大家分享參考!!!
一起學(xué)習(xí)matlab和各種optimize methods
最小化:(x-15)^2+(y-20)^2
The swarm matrix is
swarm(index, [location, velocity, best position, best value], [x, y components or the value component])
Author: Wesam ELSHAMY (wesamelshamy@yahoo.com) MSc Student, Electrical Enginering Dept., Faculty of Engineering Cairo University, Egypt
標(biāo)簽:
matlab
pso
程式
上傳時(shí)間:
2013-12-18
上傳用戶:zhaiye
int trace (int i, int j, int low, IMAGE im,IMAGE mag, IMAGE ori) float gauss(float x, float sigma) float dGauss (float x, float sigma) float meanGauss (float x, float sigma) void hysteresis (int high, int low, IMAGE im, IMAGE mag, IMAGE oriim) void canny (float s, IMAGE im, IMAGE mag, IMAGE ori)
標(biāo)簽:
IMAGE
float
int
gauss
上傳時(shí)間:
2015-01-30
上傳用戶:杜瑩12345