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!