3.75

3.8 | 4 ratings Rate this file 24 Downloads (last 30 days) File Size: 2.19 KB File ID: #19570

ClonalG selection immune algorithm

by Djaghloul Mehdi

 

13 Apr 2008 (Updated 14 Apr 2008)

Function for multimodal optomisation

| Watch this File

File Information
Description

Function for multimodal optomisation

MATLAB release MATLAB 7 (R14)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (11)
09 May 2008 Khelil H.

excellent and very good

23 Oct 2008 Cristian

Good work. I was wondering if in line 111 instead of "sel" is "Ncsel".

13 Aug 2009 Dave Yap

I'm having this error msg;

??? Attempted to access x(2); index out of bounds because numel(x)=1.

Error in ==> fit_fun at 5
   Fit_fun_val= x(1)^2 + x(2)^2 + x(3)^2;

Error in ==> jack_immune at 47
    Sel_Ab_cri(ksel)=fit_fun(Ini_Ab(:,ksel));

The problem is the data is being read 1 at a time, but from the fitness function, 3 datas are required. Can someone pls help me on the solution? Thanks in advance. My email is dyfw@hotmail.com

17 Aug 2009 Dave Yap

Thanks Mr. Mehdi for your reply on the previous post.

Now, I'm trying to find the solution for the dejong2 function using your code. I received the same error as below. Can you advice and comment on the problem?
 
??? Attempted to access p(2); index out of bounds because numel(p)=1.
Error in ==> fit_fun at 12
    Fit_fun_val(i) = 100 * (p(1)^2 - p(2)) ^2 + (1 - p(1))^2;
Error in ==> jack_immune at 48
    Sel_Ab_cri(ksel)=fit_fun(Ini_Ab(:,ksel));

The fit_fun.m (dejong2) content is as below:-
 
function Fit_fun_val=fit_fun(v)
Fit_fun_val = zeros(size(v,1),1);
for i = 1:size(v,1)
p = v(i,:);
Fit_fun_val(i) = 100 * (p(1)^2 - p(2)) ^2 + (1 - p(1))^2;
end
 
Can someone pls help me on the solution? Thanks in advance. My email is dyfw@hotmail.com

09 Oct 2009 Dave Yap

Dear Mr. Mehdi,

How can i include a range for the fitness function so that the program can search/optimize just that particular range?
example, I would like to search only within the range -3<x<8 and -8<y<20 for fitness function of f(x) = x^3 + x^2y^2 + y^4

Thus, the optimized value should should be x between -3 and 8; and y between 8 and 20.

I would like to thank you in advance and really appreciate your help.

15 Oct 2009 Dave Yap

Dear Mr. Mehdi, Appreciate your help and assistance for the above:-
  I would like to search only within the range -3<x<8 and -8<y<20 for fitness function of f(x) = x^3 + x^2y^2 + y^4
Appreciate your help. My email is dyfw@hotmail.com

31 Dec 2009 shravan

Dear Mr. Mehdi,
 i wonder about the redundant function evaluations after cloning .
why shouldn't we do maturation immediately after cloning instead of fitness calculation..
thank u for your code and reply in advance..

17 Apr 2010 weili duan

GOOD!

21 May 2010 Sanjeev Singh

Hi

Can any body tell me where to define w0. I am getting the error as w0 undefined

My e-mail: reachtosanjeev@gmail.com

04 Jul 2010 mohammed

السلام عليكم اخ مهدي
اتمنى ان تكون بخير وبصحه جيده
ممكن اخي العزيز لو كان عندك ملف فيه شرح عن الكود الي انت عملتها
ولكم جزيل الشكر
اخوكم محمد الجميلي

engin_mohammed2020@yahoo.com

13 Jul 2011 ramsha Rizwan  
Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
optimization Djaghloul Mehdi 22 Oct 2008 09:57:48
optimisation Djaghloul Mehdi 22 Oct 2008 09:57:48
ais Djaghloul Mehdi 22 Oct 2008 09:57:48
clonalg selection Djaghloul Mehdi 22 Oct 2008 09:57:48
immune algorithms Djaghloul Mehdi 22 Oct 2008 09:57:48
ais mohamed hasan 16 Dec 2009 00:16:46
ais shravan 05 Jan 2010 06:26:04
hello Sanjeev Singh 21 May 2010 05:58:25
does the program is compatible with matlab 71 how to adjust w0 Sanjeev Singh 21 May 2010 05:58:26
because i am getting the error as input argument w0 is undefined Sanjeev Singh 21 May 2010 05:58:26
immune algorithms Sanjeev Singh 21 May 2010 05:59:29
ais mohammed 04 Jul 2010 15:43:56
because i am getting the error as input argument w0 is undefined mohammed 04 Jul 2010 15:44:05
because i am getting the error as input argument w0 is undefined Sunny Dubey 04 Dec 2010 01:50:00

Contact us at files@mathworks.com