franciscoserdio / Genetic-Algorithms-Toolbox

Genetic Algorithms in Matlab.
45 stars 31 forks source link

Feature selection example ERROR #1

Open pengqinglan opened 7 years ago

pengqinglan commented 7 years ago

There was an error when I run the feature selection example in MatlabR2015b, logs here

Running GA - Iteration: 1 
 Running GA - Iteration: 2 
 Warning: Error occurred while executing callback:
Undefined function 'isnan' for input arguments of type 'matlab.ui.Figure'.

Error in sample.dummy_GUI/Plot (line 16)
            if(isnan(this.Handle))

Error in sample.feature_selection_with_Genetic_Algorithm>@(varargin)gaGUI.Plot(varargin{:})

Error in fsf.ga.GeneticAlgorithm/OnIterationEnds (line 86)
            this.notify('IterationEnds', eventData);

Error in fsf.ga.GeneticAlgorithm/Execute (line 72)
                this.OnIterationEnds(fsf.ga.events.IterationEndsEventArgs(stepPopulation, result));

Error in sample.feature_selection_with_Genetic_Algorithm (line 49)
gaResult = ga.Execute();

> In fsf.ga.GeneticAlgorithm/OnIterationEnds (line 86)
  In fsf.ga.GeneticAlgorithm/Execute (line 72)
  In sample.feature_selection_with_Genetic_Algorithm (line 49) 
Running GA - Iteration: 3 
 Warning: Error occurred while executing callback:
Undefined function 'isnan' for input arguments of type 'matlab.ui.Figure'.
pengqinglan commented 7 years ago

Fixed here #2