forked from ankurzing/bleaq2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tp6.m
24 lines (16 loc) · 1.26 KB
/
tp6.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
function [ulEliteFunctionValue, llEliteFunctionValue, ulEliteIndiv, llEliteIndiv, ulFunctionEvaluations, llFunctionEvaluations,llCalls,gen,ulDim,llDim,ulPopSize,llPopSize] = tp6()
problemName = 'tp6'; % Test problem name
ulPopSize=50; % Size of UL population
ulMaxGens=2000; % Maximum number of generations allowed at UL
ulDim=2; % Number of dimensions
llPopSize=50; % Size of LL population
llMaxGens=2000; % Maximum number of generations allowed at LL
llDim=2; % Number of dimensions
ulDimMin = zeros(1,ulDim); % Minimum bound accross UL dimensions
ulDimMax = 2*ones(1,ulDim); % Maximum bound accross UL dimensions
llDimMin = zeros(1,llDim); % Minimum bound accross LL dimensions
llDimMax = 2*ones(1,llDim); % Maximum bound accross LL dimensions
ulStoppingCriteria = 1e-4;
llStoppingCriteria = 1e-5;
[ulEliteFunctionValue, llEliteFunctionValue, ulEliteIndiv, llEliteIndiv, ulFunctionEvaluations, llFunctionEvaluations,llCalls,gen]=ulSearch(problemName, ulPopSize, ulMaxGens, ulDim, ulDimMin, ulDimMax, llPopSize, llMaxGens, llDim, llDimMin, llDimMax, ulStoppingCriteria, llStoppingCriteria);
save('tp6');