Hi
I am running a simple symbolic regression problem in GPLAB.
I have two problems:
1)The above setting means that I have the {'strictdepth'} filter on,
which should reject an individual deeper than the maximum allowed depth,
which is determined by the parameter realmaxlevel and equals 17 (for depthnodes='1').
2)I want to access tree specifications such as number of nodes and max level in regfitness.m
my settin gs are as follow:
p=resetparams;
p=setoperators(p,'crossover',2,2,'mutation',1,1);
p.operatorprobstype='variable';
p.minprob=0.1;
p=setfunctions(p,'plus',2,'minus',2,'times',2,'mydivide',2,'cos',1,'sin',1);
p.calcfitness='regfitness_mse';
p.datafilex='TrainNormIn.txt';%'Zavie_Rc_SigmaC.txt';
p.datafiley='TrainNormOut.txt';%'S.txt';
p.operatorprobstype='variable';
p.fixedlevel=1;
p.realmaxlevel='5'; %17 if depthnodes=1, 512 if depthnodes=0
p.depthnodes='1'; %1=depth, 2=size
p.dynamiclevel='0';
p.strictnodes='5';
p.strictdepth='5';
p.savetofile='every100';
p.savedir='SavedFiles';
p.calcdiversity={'uniquegen'};
p.calccomplexity=1;
p.graphics={'plotfitness','plotdiversity','plotcomplexity','plotoperators'};
p.reproduction=0.1;
