Optimization problem for threshold calculation/identification
2 次查看(过去 30 天)
显示 更早的评论
Dear MATLAB enthusiasts,
I want to calculate a threshold for vector A so that B is maximal. In this case B is a bivariate variable with "+1" for "ok" and "-1" for "critical". I want to find a threshold for A so that B is "ok" 100% -> in the case below that would be 0.4. Finally I need B to be "ok" in 70% of the cases --> in the case below that would be 0.35.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/164292/image.jpeg)
Is there a MATLAB function which can identify the threshold parameter for A so that in B the sum is max?
Plus I need a Threshold so that only 30% of the values are critical like 0.35 in this case – can that be done as well?
I would appreciate your help very much.
Thank you and best regards William
PS: I don't think that sorting is a solution I'm locking for due to my second question and the involvement of two vectors.
0 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Genetic Algorithm 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!