How to Show each Iteration

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

Réponses (1)

Walter Roberson
Walter Roberson le 23 Mar 2014

0 votes

Pass in an options structure with the field Display set to 'iter'

Catégories

En savoir plus sur Functions dans Centre d'aide et File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by