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