fmincon optimiser becomes very slow or it gets "stuck" for quite some time at a certain point of the computation.

1 view (last 30 days)
I was given this piece of code to optimise an aerofoil. However, i discovered that the fmincon optimiser often gets stuck at certain stage of computation. The value of the first order optimality stays constant at 1.554e+04 and I have no idea how to make this better?
my tolerances are diffminchange 0.05, tolcon 0.05 and tolfun 0.05. I noticed that my first order optimality is often very high. What is actually happening to the fmincon optimiser?
  2 Comments
Matt J
Matt J on 13 Feb 2016
Edited: Matt J on 13 Feb 2016
No way to know without seeing the code. Did you profile() the code?
Your tolerances are very high, though. I would imagine that a bigger problem will be that the solver stops too early.
benho
benho on 17 Feb 2016
Edited: benho on 17 Feb 2016
What I discovered later when i troubleshoot the code was that it kept giving me this error.
At line 85 of file ../src/userio.f (unit = 5, file = 'stdin') Fortran runtime error: End of file
i looked it up on the forums and it was something to do with how my windows computer is talking to xfoil. i've already added the lines which were provided on this page (<http://www.mathworks.com/matlabcentral/answers/79287-linking-fortran-to-matlab>) but the same error still pops up I could put the code here which is calling up xfoil. Any help would be greatly appreciated!

Sign in to comment.

Answers (0)

Categories

Find more on Mathematics in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!