Defining objective functions appropriately
古いコメントを表示
Hi community, I previously asked about grey wolf optimizer and the guidance I got was much helpful,am eternally grateful for you all. I wanted to use the code to estimate Weibull parameters. I have a slight problem, when defining weibull function, do we consider it as maximization problem or minimization problem? Being that my objecive function has to be Weibull function. I will appreciate any clue or any help.
採用された回答
その他の回答 (1 件)
Torsten
2023 年 2 月 2 日
0 投票
Usually, you maximize the corresponding log-likelihood function. So it's a maximization problem.
To maximize, use one of MATLAB's optimizers. Instead of maximizing f, you can then minimize -f so that every optimizer in MATLAB can also be used as a maximizer.
4 件のコメント
okoth ochola
2023 年 2 月 2 日
Did you read about maximizing the log-likelihood function of a distribution to compute its parameters ? Because you always write that the Weilbull function is the objective. This is wrong.
Better use MATLAB's tool "mle" to fit your parameters directly instead of trying to implement it on your own:
Does thismean that, I define my objective function(Weibull) as usual the i multiply it by -1 so that i minimize the function?
It means that if you have a function f you want to maximize, you supply -f as the objective function for MATLAB's optimizers. Because maximizing f is equivalent to minimizing -f.
okoth ochola
2023 年 2 月 3 日
Torsten
2023 年 2 月 3 日
but the resaerch am doing requires me to obtain the parameters using grey wolf, then compare with the results of mle().
So your research is about different optimization methods ?
カテゴリ
ヘルプ センター および File Exchange で Weibull Distribution についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!