You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It fails because prog does not have the .gramMatrices or .gramMonomials elements. I looked around further and found that these are initialized for SoS programs (in spotsosprog), but not for conic programs (spotprog). Is this a bug, or am I doing something wrong. Is the workaround to initialize these elements to NULL when formulating a conic program?
The text was updated successfully, but these errors were encountered:
I have the same issue when running the example "linf_fitting.m". It says "Unrecognized method, property, or field 'gramMatrices' for class 'spotprog'." Did you find a way around? Thanks!
I tried a simple program based on the first example in manual.pdf. Here is the Matlab code
% Simple conic optimization (first example in manual).
m = 3; % n = 2
A = [1, 2, 3; 4, 5, 6];
b = [7; 8];
prog = spotprog;
[prog, x] = prog.newFree(m);
prog = prog.withEqs(A*x - b);
[prog, a] = prog.newPos(m);
prog = prog.withPos(a - x);
prog = prog.withPos(a - (-x));
obj = sum(a);
sol = prog.minimize(obj);
sol.SolutionQuality
This resulted in an error in the call to prog.minimize(obj). The problem was in spotprog.m, line 750, where it calls spotprogsol.
sol = spotprogsol(pr,pobj,xsol,y,zsol,info);
In line 51 of spotprogsol.m, it tries
sol.gramMatrices = prog.gramMatrices;
sol.gramMonomials = prog.gramMonomials;
It fails because prog does not have the .gramMatrices or .gramMonomials elements. I looked around further and found that these are initialized for SoS programs (in spotsosprog), but not for conic programs (spotprog). Is this a bug, or am I doing something wrong. Is the workaround to initialize these elements to NULL when formulating a conic program?
The text was updated successfully, but these errors were encountered: