"amir" wrote in message <firstname.lastname@example.org>... > Hi everybody > i want optimize the shape of airfoil via genetic algorithm to minimize the drag force of airfoil. i have 5 geometric parameters that define the shape of airfoil and in fact this 5 geometric parameters must be optimized. i write a .m file in matlab with 300 lines that take this 5 geometric parameters as input , summon & execute 2 .exe file , and calculate the drag force of airfoil as output...now i dont know how can use this .m file as fitness function in genetic algorithm toolbox in matlab ... please help me >
Spend a few minutes and learn how to use an optimizer.
1. Read the help. Look at the examples. 2. Build a simple function that you can solve for a minimum. 3. See if you can make it work.
Only then should you try a problem that you consider difficult.