-
Notifications
You must be signed in to change notification settings - Fork 18
/
tp4.m
25 lines (16 loc) · 1.27 KB
/
tp4.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] = tp4()
problemName = 'tp4'; % 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=3; % Number of LL dimensions
ulDimMin = zeros(1,ulDim); % Minimum bound accross UL dimensions
ulDimMax = 1*ones(1,ulDim); % Maximum bound accross UL dimensions
llDimMin = zeros(1,llDim); % Minimum bound accross LL dimensions
llDimMax = 1*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('tp4');