Path: news.mathworks.com!not-for-mail
From: "Mamdouh " <mrenergy2011@hotmail.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: GA Optimization ... Maximum recursion limit of 500 reached
Date: Mon, 20 May 2013 21:14:08 +0000 (UTC)
Organization: AL-AZHAR UNIVERSITY
Lines: 36
Message-ID: <kne3n0$k5r$1@newscl01ah.mathworks.com>
References: <kncc3j$ror$1@newscl01ah.mathworks.com> <kndesb$9jd$1@newscl01ah.mathworks.com>
Reply-To: "Mamdouh " <mrenergy2011@hotmail.com>
NNTP-Posting-Host: www-04-blr.mathworks.com
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: newscl01ah.mathworks.com 1369084448 20667 172.30.248.35 (20 May 2013 21:14:08 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Mon, 20 May 2013 21:14:08 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 3108912
Xref: news.mathworks.com comp.soft-sys.matlab:795841

"Steven_Lord" <slord@mathworks.com> wrote in message <kndesb$9jd$1@newscl01ah.mathworks.com>...

> 
> 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 


thank you Steve Lord for your reply,

1- as I new in optimization, and as I mentioned in my first post, I am not sure if I properly formulated my problem on MATLAB. Actually, I wondered that it run.

2- I prefer to describe my problem briefly:

- my problem is to optimize the layout of a number of wind turbines (say 16) in series in order to maximize the power produced. 
- I have the technical data for 28 types of wind turbines, a vector of 10 elements, must be used in calculation if any type of turbine is chosen at any location. 
- besides, each turbine may operate at a rage of hub heights.
- the proposed location of each turbine also an aspect of optimization.
- so, for the 16 proposed turbines in series, I have 3 variables (turbine type, hub height, and X-coordinate), but the first variable is linked with the 28 x 10 technical data matrix (this is the source of extensively calling the data from the matrix).
- the wake effect of each turbine on all downstream turbines is calculated based on their type, height, and location.
- I have a specified LB and UB vectors, and have one linear equality constrain [sum (distance among turbines) = a specified total length]

I hope these released secrets regarding to my problem may help you to help me :)
thank you again,
Mamdouh.