フィルターのクリア

Optimization objective funcion containing a sum

3 ビュー (過去 30 日間)
Ricardo López
Ricardo López 2021 年 1 月 10 日
回答済み: Matt J 2021 年 1 月 10 日
Good afternoon,
I am writing a MATLAB code to minimize the following equation:
Both C_H and PV are matrices already calculated. I want get the optimum values of b so that equation is the minimum. The only constraint is the upper and lower limits of b: 0<= b <=1.
Does anyone knows how to implement it on MATLAB?
Thank you for your time

回答 (1 件)

Matt J
Matt J 2021 年 1 月 10 日
s=sign(sum(PV(1:n,1)));
if s<=0, b=1; else, b=0; end

カテゴリ

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