How to Show each Iteration

2 visualizzazioni (ultimi 30 giorni)
Juan
Juan il 23 Mar 2014
Risposto: Walter Roberson il 23 Mar 2014
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

Risposte (1)

Walter Roberson
Walter Roberson il 23 Mar 2014
Pass in an options structure with the field Display set to 'iter'

Categorie

Scopri di più su Functions in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by