My population Size is 20(say 20 set of solutions)
My program is quite lengthy i.e. one solution gives output after 1708 'for loop' iterations.
My merit function is (difference of desired optical transmittance performance and obtained transmittance performance). Desired I am giving input from an excel sheet. Obtained I am getting from some equations. To calculate transmittance there are several 'for loop' iterations depending upon number of layers and wavelengths. So one solution gives one output transmittance performance curve (for the specified range of wavelength) after 1708 'for loop' iterations.
It means to first generation to complete all the 20 solutions (i.e. population size) is to be tested then second generation will start and its taking a long time?
Like if run program using optimtool in MATLAB for 10 iterations/ generations, it takes almost 2 hrs to give me output or 10 iterations/generations to complete.
Is it usual to take so much time or something is wrong in my program?