필터 지우기
필터 지우기

Error with lsqlin with inequality constraint using interior-point-convex

조회 수: 20 (최근 30일)
Dave Lee
Dave Lee 2018년 3월 20일
댓글: Dave Lee 2018년 3월 20일
Hi there, I was using the following code
options = optimoptions('lsqlin','Algorithm','interior-point',...
'MaxIter',1000,'Display','iter','TolFun',1e-1,'TolCon',1e-1);
[x,resnorm,residual,exitflag,output,lambda] =...
lsqlin(A_matrix,b_matrix,A_inequal,b_inequal,A_equal,b_equal,lb,ub,x0,options);
It works fine with one dataset, when I append the dataset with some more data, I have the error
Error using ipqpcommon>ipConvexQP (line 122)
The interior-point-convex algorithm requires all objective and constraint values to be finite.
Error in ipqpcommon (line 59)
Error in lsqlin (line 384)
[X,~,exitflag,output,lambda] = ipqpcommon(H,f,A,b,Aeq,beq,lb,ub,X0, ....
I searched around but couldn't find detailed documentation on this error. Could anyone give me a guidance? Thanks, Dave

채택된 답변

Matt J
Matt J 2018년 3월 20일
편집: Matt J 2018년 3월 20일
I searched around but couldn't find detailed documentation on this error. Could anyone give me a guidance?
Not definitively without having the data to play with (you could attach it to your post for us in a .mat file), but I suspect there are some inadvertent Inf entries in A_matrix,b_matrix,A_inequal,b_inequal,A_equal,b_equal. This is not allowed.
  댓글 수: 1
Dave Lee
Dave Lee 2018년 3월 20일
@Matt J: Thanks a lot! It was the issue when some data input was nan. I was led to the wrong track on debugging this. Took me almost one day.
Dave

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Linear Least Squares에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by