フィルターのクリア

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

2 ビュー (過去 30 日間)
benho
benho 2016 年 2 月 13 日
編集済み: benho 2016 年 2 月 17 日
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 Center および File ExchangeMathematics についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by