-
Notifications
You must be signed in to change notification settings - Fork 3
/
colleaguesLimitsGenerator.m
31 lines (28 loc) · 1.07 KB
/
colleaguesLimitsGenerator.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
%_________________________________________________________________________________
% Heap-based optimizer inspired by corporate rank hierarchy for global
% optimization source codes version 1.0
%
% Developed in MATLAB R2015a
%
% Author and programmer: Qamar Askari
%
% e-Mail: l165502@lhr.nu.edu.pk
% syedqamar@gift.edu.pk
%
%
% Main paper:
% Askari, Q., Saeed, M., & Younas, I. (2020). Heap-based optimizer
% inspired by corporate rank hierarchy for global optimization.
% Expert Systems with Applications, 2020,
%____________________________________________________________________________________
function [colleaguesLimits]= colleaguesLimitsGenerator(degree,searchAgents)
colleaguesLimits = zeros(searchAgents,2);
for c = searchAgents: -1 : 1
hi = ceil((log10(c * degree - c + 1)/log10(degree))) - 1;
lowerLim = ((degree * degree^(hi-1) - 1)/(degree-1) + 1);
upperLim = (degree * degree^hi - 1)/(degree-1);
colleaguesLimits(c,1) = lowerLim;
colleaguesLimits(c,2) = upperLim;
end
%colleaguesLimits;
end