?? bipart_perturb.m
字號(hào):
function W = bipart_perturb(X,W,Ea,T)
% W = bipart_perturb(X,W,Ea,T)
% Method for graphbipart example supplied with SA Tools.
% See http://www.frostconcepts.com/software for information on SA Tools.
%
% W = bipart_perturb(X,W,Ea,T) ;
%
% X = {N, A}
% N = # of vertices.
% A = Adjacency matrix.
% W = vector of +1, -1 partition of length N
% Ea = (not used) average energy at current temperature.
% T = (not used) current temperature
%
% Flips the sign of a random element of W.
%
n = X{1} ;
i = 1 + floor(n*rand) ;
W(i) = -W(i) ;
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -