Solving with SDPT3 disables all MATLAB warnings

23 views
Skip to first unread message

Jurre The Paranoid Android

unread,
Jan 8, 2016, 10:27:33 AM1/8/16
to YALMIP
Dear all,

I discovered that solving a YALMIP optimization problem using SDPT3 as a solver unexpectedly turns off all MATLAB warnings. Example code to reproduce:

---
clear all; close all; clc;

warning('on');
warning()       % Output: All warnings have the state 'on'.

A = [-0.4 -0.02; -0.02 -0.6];
P = sdpvar(2, 2, 'symmetric');
constr = (P >= 1e-6) + (A'*P*A - P <= 0);
diagn = optimize(constr, [], sdpsettings('solver', 'sdpt3'));

warning()       % Output: All warnings have the state 'off'.

---

The behaviour does not occur if I specify another solver, e.g., sedumi. Version information: SDPT3 4.0, MATLAB 8.5.0.197613 (R2015a), YALMIP 20150919.

Can this problem somehow be resolved?

Best regards,
Jurre H

Jurre The Paranoid Android

unread,
Jan 8, 2016, 10:47:23 AM1/8/16
to YALMIP
Actually, the YALMIP version is 20150918 but yalmip('version') outputs 20150919.

Johan Löfberg

unread,
Jan 8, 2016, 11:38:59 AM1/8/16
to YALMIP
Since this is an SDPT3 issue, you shoulf file a bug on the sqlp/sdpt3 github issue tracker

The only way to circumvent this is
s=warning;
call sdpt3
warning
(s);



Jurre The Paranoid Android

unread,
Jan 12, 2016, 4:31:07 AM1/12/16
to YALMIP
Thank you for the clarification that this is not a YALMIP issue.
Reply all
Reply to author
Forward
0 new messages