Question about using the optimization linear programming in MATLAB ?
이전 댓글 표시
Hello all,
I started to use the optimization linear programming function in MATLAB function
[x,fval,exitflag,output,lambda]=linprog(f,A,B,Aeq,Beq,lb,ub,x0,options)
I have the following optimization objectives and constraints
Min ||X||
where
||X||
represent the summation of the absolute values of X
X represent the variables in the optimization which are bounded between the interval [-1,1]
the constraint is AX=b
What I did is that I chose these for the function
[x,output]=linprog(f,[],[],Aeq,beq,lb,ub)
and as the objective of the optimization is minimize f*X the f = [1 1 1 1 1 1 1 1 1] in order to be multiplied with 9 values of X .
The problem is that I wasn't able to sum the absolutes of the 9 values of X which give me the summation minimum value which keep the constraints equal.
Is there anyone tried to solve this issue ??
Thanks in advance
Abduallah
답변 (1개)
Walter Roberson
2015년 7월 17일
0 개 추천
When you work with abs(X) then you are no longer working with linear programming. You will need to switch minimizers.
카테고리
도움말 센터 및 File Exchange에서 Linear Programming and Mixed-Integer Linear Programming에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!