Simulation of GAPID code is yielding invalid "initializega" function (Type: double, MATLAB version:7.7)what is to be done?

%Initialising the genetic algorithm
populationSize=80;
variableBounds=[-100 100;-100 100;-100 100];
evalFN='PID_objfun_MSE';
%Change this to relevant object function
evalOps=[];
options=[1e-6 1];
initPop=initializega(populationSize,variableBounds,evalFN,...
evalOps,options);
%
after simulation i'm getting following error: ??? Undefined function or method 'initializega' for input arguments of type 'double'.
Error in ==> rky at 20 initPop=initializega(populationSize,variableBounds,evalFN,...__________________________________________________________________

回答 (2 件)

Walter Roberson
Walter Roberson 2012 年 1 月 9 日
Do you have the Global Optimization Toolbox installed?

9 件のコメント

meghana
meghana 2012 年 1 月 9 日
No. can you please assist me in doing that please.
please visit
http://www.mathworks.com/downloads/web_downloads/agent_check?s_cid=mwa-cmlndedl&mode=gwylf&refer=mwa
This is the link you get if you click in the upper right corner here on "My community profile", and then look down the left side to "Get Licensed Products and Updates".
You will be able to download anything you are authorized for (that is, anything you are on record as having paid for.)
meghana
meghana 2012 年 1 月 10 日
same problem is occurring after having global optimization toolbox
Walter Roberson
Walter Roberson 2012 年 1 月 10 日
Does the ver() command show that toolbox now? Does
which -all initializega
show any results?
Which MATLAB version are you using?
Aj_ti
Aj_ti 2013 年 12 月 15 日
i'm facing the same problem. i have the toolbox. and my matlab version is r2012a. please help me
lithika
lithika 2014 年 3 月 4 日
編集済み: Walter Roberson 2016 年 4 月 1 日
This is the going through of ver() command in matlab. I have global optimisation toolbox also but the code for the GA doesnt work.
Suggest an answer.
lithika
lithika 2014 年 3 月 4 日
all initializega shows ans=1;
How to solve this problem to make the code run????
Khushboo Rani
Khushboo Rani 2016 年 3 月 29 日
exactly ...it is showing initializega is undefined
initializega is part of the third-party Genetic Algorithm Optimization Toolbox, https://github.com/estsauver/GAOT

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

Murali bose
Murali bose 2012 年 11 月 5 日
i too concerning about same code and getting same error msg, though i have installed GAOT. please help me ti fix this problem

カテゴリ

ヘルプ センター および File ExchangeMATLAB についてさらに検索

製品

タグ

質問済み:

2012 年 1 月 9 日

コメント済み:

2016 年 4 月 1 日

Community Treasure Hunt

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

Start Hunting!

Translated by