How to Show each Iteration

2 ビュー (過去 30 日間)
Juan
Juan 2014 年 3 月 23 日
回答済み: Walter Roberson 2014 年 3 月 23 日
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

回答 (1 件)

Walter Roberson
Walter Roberson 2014 年 3 月 23 日
Pass in an options structure with the field Display set to 'iter'

カテゴリ

Help Center および File ExchangeFunctions についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by