Path: news.mathworks.com!not-for-mail
From: "Matthew " <men5mjr@leeds.ac.uk>
Newsgroups: comp.soft-sys.matlab
Subject: how to use optimisation tools in Matlab
Date: Wed, 19 Nov 2008 15:46:02 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 16
Message-ID: <gg1cbq$9gm$1@fred.mathworks.com>
Reply-To: "Matthew " <men5mjr@leeds.ac.uk>
NNTP-Posting-Host: webapp-02-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1227109562 9750 172.30.248.37 (19 Nov 2008 15:46:02 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Wed, 19 Nov 2008 15:46:02 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1606798
Xref: news.mathworks.com comp.soft-sys.matlab:501749


i am trying to optimise the CL value of an aerofoil by varing a rotation angle theta 

theta is fed into a function i will call 'F' to firstly rotate the co-ordinate points of an aerofoil 

this aerofoil data is then fed into an external programme by 'F'

the data from the external programme is then called back into my function 'F'

this data is then plotted by 'F'

what i am having problems with is using an optimisation technique such as fgoalattain (x=fgoalattain(fun,x0,goal....) or fminimax to have the variable 'x' as theta, but the 'goal' to be finding the correct CL value from my function 'F'.

what i ultimately want to do is input a Cl value and the optimiser to vary theta until my Cl input value is met.

i have been pouring over this now for 2 weeks
and i am pulling my hair out.