#1 [vars,best]=demo - fails

closed
nobody
5
2006-10-26
2006-10-24
Anonymous
No

When trying to run the demo from GPLAB 2.1, I get
this:

>> cd('c:/src/gplab')
>> [vars,best]=demo
Running symbolic regression demo...
- Using algorithm parameters with previously set
values.

(increasing parameter 'minprob' to 0.005000)

(setting parameter 'inicmaxlevel' automatically...)

(setting parameter 'inicdynlevel' automatically...)

(setting parameter 'realmaxlevel' automatically...)

(setting parameter 'adaptinterval'
automatically...)

(setting parameter 'adaptwindowsize'
automatically...)

(setting parameter 'tournamentsize'
automatically...)

- Initializing algorithm state values.

Running algorithm...

- Creating initial generation -
??? Attempt to reference field of non-structure array.

Error in ==> regfitness at 35
X=data.example;

Error in ==> updatestate at 99
testfitness=feval
(params.calcfitness,state.bestsofar.str,params,data.te
st,state.terminals,tmpstate.varsvals);

Error in ==> genpop at 54
[state,pop]=updatestate(params,state,data,pop);

Error in ==> gplab at 102
[vars.pop,vars.state]=genpop
(vars.params,vars.state,vars.data,n);

Error in ==> demo at 39
[v,b]=gplab(25,50,p);

>>

Discussion

  • Sara Silva
    Sara Silva
    2006-10-26

    • status: open --> closed