Minimisation of a scaler function
Show older comments
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);
'''
Answers (1)
Walter Roberson
on 28 Jun 2022
0 votes
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 Comments
Abhinav Agrawal
on 28 Jun 2022
Edited: Abhinav Agrawal
on 28 Jun 2022
Abhinav Agrawal
on 28 Jun 2022
Walter Roberson
on 28 Jun 2022
yes, similar to lambda, and yes, restricted range
Categories
Find more on Optimization in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!