MATLAB Answers

linear optimization without any constraint

1 view (last 30 days)
MUKESH KUMAR
MUKESH KUMAR on 31 Jul 2019
Edited: MUKESH KUMAR on 31 Jul 2019
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 Comments

Sign in to comment.

Answers (0)

Sign in to answer this question.