linear optimization without any constraint

I had following code:
% data
a = 30;
b = 150;
D = (b-a).*rand(100,1) + a;
% threshold
Th=110;
Th=repmat(110,100,1);
% difference
Diff = abs(D-Th);
%V(100,1);
S_Diff= sum(Diff);
Now I want to minimize S_Diff and a find correcponding vector V(100,1) for (D+V-Th) using linear optimiztion.

回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeNonlinear Optimization についてさらに検索

質問済み:

2019 年 7 月 31 日

編集済み:

2019 年 7 月 31 日

Community Treasure Hunt

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

Start Hunting!

Translated by