Path: news.mathworks.com!not-for-mail
From: "Steven_Lord" <slord@mathworks.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: GA Optimization ... Maximum recursion limit of 500 reached
Date: Mon, 20 May 2013 11:18:35 -0400
Organization: MathWorks
Lines: 39
Message-ID: <kndesb$9jd$1@newscl01ah.mathworks.com>
References: <kncc3j$ror$1@newscl01ah.mathworks.com>
NNTP-Posting-Host: ah-slord.dhcp.mathworks.com
Mime-Version: 1.0
Content-Type: text/plain;
	format=flowed;
	charset="UTF-8";
	reply-type=response
Content-Transfer-Encoding: 7bit
X-Trace: newscl01ah.mathworks.com 1369063115 9837 172.28.9.169 (20 May 2013 15:18:35 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Mon, 20 May 2013 15:18:35 +0000 (UTC)
In-Reply-To: <kncc3j$ror$1@newscl01ah.mathworks.com>
X-Priority: 3
X-MSMail-Priority: Normal
Importance: Normal
X-Newsreader: Microsoft Windows Live Mail 14.0.8089.726
X-MimeOLE: Produced By Microsoft MimeOLE V14.0.8089.726
Xref: news.mathworks.com comp.soft-sys.matlab:795831



"Mamdouh " <mrenergy2011@hotmail.com> wrote in message 
news:kncc3j$ror$1@newscl01ah.mathworks.com...
> Hi everybody,
> I am Mamdouh, it is my first post :) , however, I am not new in MATLAB
> I am working on GA Optimization for the first time.
>
> I am working on wind farm layout optimization ... having 3 variables :
> 1- turbine type, ................ 28 turbines
> 2- hub height, and
> 3- turbine location.
>
> if one of the 28 turbine types that I have is chosen, its own 
> characteristics (a vector of 10 elements) must be used in calculations. 
> so, I have a tabulated database (28 x 10) on .xls spreadsheet needed for 
> the fitness function calculation.
>
>
> I am not sure if I organized my code in the right way, BUT IT RUNS. After 
> few seconds I got this common message:
>
> Maximum recursion limit of 500 reached. ... etc. ....

See question 13 in the Programming section of the newsgroup FAQ. While that 
question is phrased in terms of the ODE45 function, it also applies to other 
"function functions" like GA.

http://matlab.wikia.com/wiki/FAQ

Move your call to GA out of any of the functions that you're passing into GA 
as input arguments (either directly or in the options.)

-- 
Steve Lord
slord@mathworks.com
To contact Technical Support use the Contact Us link on 
http://www.mathworks.com