Question about using the optimization linear programming in MATLAB ?
Mostra commenti meno recenti
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
Risposte (1)
Walter Roberson
il 17 Lug 2015
0 voti
When you work with abs(X) then you are no longer working with linear programming. You will need to switch minimizers.
Categorie
Scopri di più su Linear Programming and Mixed-Integer Linear Programming in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!