Choose samples from statistical distribution for fmincon optimization
2 ビュー (過去 30 日間)
古いコメントを表示
Hi everyone,
I have a problem with several variables. Each of these variables (both opimized and non optimized) has statistical distribution. How could I set fmincon to select optimization samples randomly from their statistical distribution?
0 件のコメント
採用された回答
Jeff Miller
2019 年 10 月 16 日
It is probably a better idea to select the samples randomly and then have fmincon optimize for the given sample.
If you must take samples randomly during the minimization process, you can do that inside the user-defined 'fun' that fmincon tries to minimize. But this almost always causes problems: fmincon gets very confused when the values returned by 'fun' vary somewhat non-systematically due to the random sampling in fun.
Another option is to sample systematically rather than randomly inside fun. For example, sample each variable in evenly-spaced probability steps within its statistical distribution.
3 件のコメント
Jeff Miller
2019 年 10 月 16 日
Sorry I cannot be more helpful, but I really have no idea what problem you are trying to solve. For example, what function are you trying to minimize? And why do you need to take random samples during the minimization process?
You should probably ask a new question and provide a lot more explanation of what you are trying to do. Maybe someone will recognize the problem and be able to help.
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Get Started with Optimization Toolbox についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!