Main function (v2) - ies_main2.m


newpopu = ies_main2(popu,subfigrows,fcnname);

This function is the main function of Easy-IEC toolbox (v2). The user must call this function.

The function runs the evolutionary-loop and calls the other functions to create and handle the interactive figure. It runs until the operator interrupts the evolutionary-loop by Exit button or closing the interactive window.

The popu is the initialized population variable. If this variable is the resulted population variable of the last searching, ies_main2 will continue the searching.

The subfigrows gives how many subplot-rows belong to individuals. The user function will use the subplots.

The fcnname is the name of the user function.


%The program:

clear all

close all

%load the population variable -> popu:

load srchres

%Runs the evolutionary-loop:

popu = ies_main(popu,4,'userfun2');

%Save the resulted population:

save srchres popu