您好,歡迎來(lái)電子發(fā)燒友網(wǎng)! ,新用戶?[免費(fèi)注冊(cè)]

您的位置:電子發(fā)燒友網(wǎng)>源碼下載>matlab源程序>

模擬退火算法的matlab示例源代碼程序

大?。?/span>433 人氣: 2010-02-08 需要積分:0
幽默的空間

用戶級(jí)別:注冊(cè)會(huì)員

貢獻(xiàn)文章:

貢獻(xiàn)資料:

模擬退火算法matlab示例:function s = simulatedannealing(inputcities,initial_temperature,...
??? cooling_rate,threshold,numberofcitiestoswap)
% SIMULATEDANNEALING
% S = SIMULATEDANNEALING(inputcities,initial_temperature,cooling_rate)
% returns the new configuration of cities with an optimal solution for the
% traveling salesman problem for n cities.
%
%The input arguments are
% INPUTCITIES???????? - The cordinates for n cities are represented as 2
%?????????????????????? rows and n columns and is passed as an argument for
%?????????????????????? SIMULATEDANNEALING.
% INITIAL_TEMPERATURE - The initial temperature to start the
%?????????????????????? simulatedannealing process.
% COOLING_RATE??????? - Cooling rate for the simulatedannealing process.
%?????????????????????? Cooling rate should always be less than one.
% THRESHOLD?????????? - Threshold is the stopping criteria and it is the
%?????????????????????? acceptable distance for n cities.
% NUMBEROFCITIESTOSWAP- Specify the maximum number of pair of cities to
%?????????????????????? swap. As temperature decreases the number of cities
%?????????????????????? to be swapped decreases and eventually reaches one
%?????????????????????? pair of cities.

非常好我支持^.^

(10) 83.3%

不好我反對(duì)

(2) 16.7%

      發(fā)表評(píng)論

      用戶評(píng)論
      評(píng)價(jià):好評(píng)中評(píng)差評(píng)

      發(fā)表評(píng)論,獲取積分! 請(qǐng)遵守相關(guān)規(guī)定!

      ?