Minimisation of a scaler function

1 回表示 (過去 30 日間)
Abhinav Agrawal
Abhinav Agrawal 2022 年 6 月 28 日
コメント済み: Walter Roberson 2022 年 6 月 28 日
Can someone help me understand this part of the code?
What exactly is the function here?
function [score] = mS(scale, sc, nP, fsl, fp)
'''
score = 0
pS = ST(fSL .* (exp(scale .* SC)))
score = score + pS
return
iS = 5
[bs, bs1] = fminbnd(@(scale) mS(scale, sc, nP, fsl, fp), 0.25 * iS, 5.0 * iS);
'''

回答 (1 件)

Walter Roberson
Walter Roberson 2022 年 6 月 28 日
The function is ST(fSL .* (exp(scale .* SC))) with varying values of "scale". You did not happen to show the definition of ST
sc, nP, fsl, fp are being passed in as constants
  3 件のコメント
Abhinav Agrawal
Abhinav Agrawal 2022 年 6 月 28 日
@Walter Roberson Does the value that scale take would be arbitrary or between the range :0.25 * iS, 5.0 * iS?
Walter Roberson
Walter Roberson 2022 年 6 月 28 日
yes, similar to lambda, and yes, restricted range

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeGet Started with Optimization Toolbox についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by