hartley.m

来自「Simulated Annealing Tools Software」· M 代码 · 共 24 行

M
24
字号
function T = hartley(Ea,Estd,walkers,dEtgt,v,e,T,t,P)
% Hartley temperature update method supplied with SA Tools.
% Copyright (c) 2002, by Richard Frost and Frost Concepts.
% See http://www.frostconcepts.com/software for information on SA Tools.
%
%   T = hartley(Ea,Estd,walkers,dEtgt,v,e,T,t,P) ;
%
%   Ea = (not used) average energy.
%   Estd = (not used) standard deviation of energies
%   walkers = (not used) number of walkers
%   dEtgt = (not used) difference between present and previous target mean energy
%   v = (not used) thermodynamic speed.
%   e = (not used) estimate of relaxation time.
%   T = current temperature.
%   t = (not used) temperature step #.
%   P = small positive scalar constant 0 < P < 1; e.g., 0.01
%
if (P <= 0) | (1 <= P)
    error(sprintf('hartley method requires 0 < P < 1  (was: %g)',P)) ;
end
if T > 0
    T = 1 / ((1/T) + P) ;
end

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?