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

2 次查看(过去 30 天)
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 个评论
Matt J
Matt J 2016-2-13
编辑:Matt J 2016-2-13
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 2016-2-17
编辑:benho 2016-2-17
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!

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Mathematics 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by