linear optimization problem in matlab
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
ashwin TP
am 2 Sep. 2020
Beantwortet: GULZAR
am 21 Mär. 2024
Hi, i have written the following function for optimization but i does not show the answer, but keeps displaying the "optimal solution found'.
f=[-10 -2];
a=[1 2;1 -3;-20 2];
b=[20 3 -10];
aeq=[];
beq=[];
lb=[0 0 ];
ub=[];
[X F]=linprog(f,a,b,aeq,beq,lb,ub);
Optimal solution found.
0 Kommentare
Akzeptierte Antwort
Weitere Antworten (1)
GULZAR
am 21 Mär. 2024
f=[-10 -2];
a=[1 2;1 -3;-20 2];
b=[20 3 -10];
aeq=[];
beq=[];
lb=[0 0];
ub=[];
[X, F]=linprog(f,a,b,aeq,beq,lb,ub);
disp(X)
disp(F)
0 Kommentare
Siehe auch
Kategorien
Mehr zu Problem-Based Optimization Setup finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!