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
This is the piece of code, from Babak Alipanahi 2011, which solves and SDP. I am not able to understand what are the constraints here. How is 3rd column of At and blk used here. There is no example in user guide with such blk and At structure. I am trying to solve this thing in another library so I need to understand what it is solving.
For small example, Please check my attached image. I am also not able to understand, it is taking non square matrix as constraint matrices (the Vec_cons). Please help me to understand this structure.
The text was updated successfully, but these errors were encountered:
Cs = cell(2,1);
Cs{1} = C_slacks;
Cs{2} = -speye(sdp_dim);
blk = cell(2,3);
At = cell(2,3);
blk{1,1} = 'l';
blk{1,2} = num_slacks;
blk{2,1} = 's';
blk{2,2} = sdp_dim;
blk{2,3} = ones(1,num_indep_cons);
%blk{2,3}
At{1,1} = sparse(S_slacks(:,1),S_slacks(:,2),S_slacks(:,3),num_slacks,num_cons,num_slacks);
At{1,1}
At{2,1} = [];
At{2,2} = Vec_cons;
At{2,3} = ones(num_indep_cons,1);
%At{2,3}
OPTIONS.printlevel = 3;
[~, X] = sqlp(blk,At,Cs,b,OPTIONS);
This is the piece of code, from Babak Alipanahi 2011, which solves and SDP. I am not able to understand what are the constraints here. How is 3rd column of At and blk used here. There is no example in user guide with such blk and At structure. I am trying to solve this thing in another library so I need to understand what it is solving.
For small example, Please check my attached image. I am also not able to understand, it is taking non square matrix as constraint matrices (the Vec_cons). Please help me to understand this structure.
![WhatsApp Image 2024-06-23 at 22 59 57](https://private-user-images.githubusercontent.com/119730637/346198330-2d7d0fb6-898d-4005-aefd-b406d1f52c76.jpeg?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzg5NTc2ODcsIm5iZiI6MTczODk1NzM4NywicGF0aCI6Ii8xMTk3MzA2MzcvMzQ2MTk4MzMwLTJkN2QwZmI2LTg5OGQtNDAwNS1hZWZkLWI0MDZkMWY1MmM3Ni5qcGVnP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIwNyUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMDdUMTk0MzA3WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9OGIyMWQ0OTI0OWI4MWI3M2YzNzcyYzJlNGYxOTg0YTdkYWFjNDFhMmYzZTM2YjM1Yzk4MWMyYTNmMTQ3OTI4MiZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.83Gnwwd1vS_QUC844uZZstq5fTWpBRA5FM9tpqRQjpQ)
The text was updated successfully, but these errors were encountered: