Installation of genetic algorithm tool box

Sir,
I am using matlab2015a for genetic algorithm. Do i need to install ga tool box in matlab separately after installing matlab. Why i'm querying regarding this is that while i input the functions like rep, bs2rv etc. in command window, they are showing error like undefined argument..
The program is as follows:
NIND=40;
MAXGEN=300;
NVAR=20;
GGAP=0.9;
FieldD=[rep(PRECI],[1,NVAR]);...
rep([-512;512],[1,nvar]);rep([1;0;1;1],[1,NVAR])];
Chrom=crtbp(NIND<NVAR*PRECI);
gen=0;
ObjV=objfun1(bs2rv(CHrom,FieldD));
while gen < MAXGEN,
fitnV=ranking(ObjV);
SelCh=select('sus',Chrom,FitnV,GGAP);
SElCH=recombin('xovsp',SeloCh,0.7);
SelCH=mut(SelCh);
ObjVSel=objfun1(bs2rv(SelCH,FieldD));
[Chrom ObjV]=reins(Chrom,SelCh,1,1,ObjV,ObjVSel);
gen=gen+1;
end
Or do i need to create separate function files for each of these like i did for fitness function

 採用された回答

Walter Roberson
Walter Roberson 2015 年 12 月 30 日

0 投票

Those functions appear to be part of the third-party gatbx package, which you can download from http://www.acse.dept.shef.ac.uk/cgi-bin/gatbx-download

5 件のコメント

SNEHA JACOB
SNEHA JACOB 2015 年 12 月 30 日
Thank you sir...is this working on MATLAB2015a..anyway i will go through
Venkatesh Dixit
Venkatesh Dixit 2018 年 1 月 26 日
How should i install this toolbox in my MATLAB 2015 A?
Walter Roberson
Walter Roberson 2018 年 1 月 29 日
I am not sure. The download form says they will email a copy of the software, but I would not be surprised if they instead email a link to the software to download. Probably you need to download the software on to your computer, unzip it if necessary, and then use pathtool to add the appropriate directory to your MATLAB path. There might be more specific installation required, though.
Asong Desmond
Asong Desmond 2019 年 4 月 9 日
please can anyone tell me where to get the gatoolbox am really in need of it because when i try to use some functions the tell me undefined. thanks
Walter Roberson
Walter Roberson 2019 年 4 月 9 日

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeIntroduction to Installation and Licensing についてさらに検索

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by