linear optimization without any constraint
1 回表示 (過去 30 日間)
古いコメントを表示
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 件のコメント
回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Nonlinear Optimization についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!