使用pso求最小化一函數
matlab程式碼,寫的非常簡潔(不到100行),且還包括了2維的圖形展示,和大家分享參考!!!
一起學習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
標簽:
matlab
pso
程式
上傳時間:
2013-12-18
上傳用戶:zhaiye
文本計算器是一款為經常需要使用計算器的工程項目人士而設計的軟件,該軟件使用簡單、方便。
當需要計算數據時,在窗口中輸入整個表達式(表達式可以是加+、減-、乘*、除/、平方^、括號(),以及數學函數組合),按回車后可自動計算出結果,計算方法一目了然,便于查找計算中可能出現的錯誤。
支持的數學函數:cos(), sin(), tg(), ctg(), abs(), sgn() or sign(), sqrt(), ln(),sh() or sinh(), ch() or cosh(), th() or tanh(),cth() or coth(), heaviside()
標簽:
計算器
工程項目
軟件
上傳時間:
2015-10-25
上傳用戶:zhuyibin