nfezans
User
 Fresh Boarder
| Posts: 3 |   |
|
Segmentation Fault on a basic SOCP (w YALMIP) - 2009/06/22 04:34
Hi,
First of all thank you for the work you do on SeDuMi!
I submit a bug here because I guess that is a bug of SeDuMi and not YALMIP (but I am not 100% sure of it). As a new user of both SeDuMi and YALMIP I was doing some basic tests to see whether I really understand the way I can use them and I found what seems to be a very basic example generating a Segmentation Fault.
I use SeDuMi 1.21 and YALMIP R20090505 with MATLAB R2006a under Windows XP SP3.
The first example:
x = sdpvar(2,1); F = cone(diag([1,2])*x,1); % cone constraint solvesdp(F, [-3,2]*x,sdpsettings('solver','sedumi','verbose',1));
works properly. But the following one generate a segmentation fault:
n = 100; big_x = sdpvar(n,1); big_F = cone(big_x,1); solvesdp(big_F,-3*sum(big_x),sdpsettings('solver','sedumi','verbose',1));
It seems to work properly with the same syntax but calling another solver (SDPT3), so I guess my YALMIP syntax is not wrong, is it?
n = 100; big_x = sdpvar(n,1); big_F = cone(big_x,1); solvesdp(big_F,-3*sum(big_x),sdpsettings('solver','sdpt3','verbose',1));
I tried to restart MATLAB and Windows before submitting this bug and each time the same error occurs. What is also interesting (and maybe will help you to find the bug) is that it seems to occur only for n>50. Is there a test on the size of the problem involving this value (50) and making some "special/other treatments" for bigger problems?
Best regards,
Nicolas
|