How to Show each Iteration
2 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Hi, I want to see each iteration in the following function. Anyone has any idea how I can do it. It is a built in function in matlab.
Here is my code
clc
%objective function
f=[-3 -2 5 2 -3]
%boundary constrans
lb=zeros(5,1)
ub=inf(5,1)
%equality constrains
Aeq=[ ]
beq=[ ]
%inequality constarins
A=[1 1 1 2 1;7 0 3 -4 3;11 6 0 -3 3]
b=[4;8;-3]
iter=5
%call for solver
[x,fval,exitflag,output,display]=linprog(f,A,b,Aeq,beq,lb,ub,iter)
Thank You
0 Commenti
Risposte (1)
Walter Roberson
il 23 Mar 2014
Pass in an options structure with the field Display set to 'iter'
0 Commenti
Vedere anche
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!