oxfordcontrol / cdcs Goto Github PK
View Code? Open in Web Editor NEWAn open-source MATLAB® ADMM solver for partially decomposable conic optimization programs.
License: GNU Lesser General Public License v3.0
An open-source MATLAB® ADMM solver for partially decomposable conic optimization programs.
License: GNU Lesser General Public License v3.0
Hi,
Thanks for your work.
I am trying to check the feasibility of some LMIs. During the iteration progress of CDCS, all the elements show as NaN. One instance is attached (Matlab code, but save as txt to upload).
Code_for_Seuret2013AutomaticaCase3.txt
I also tried to check the feasibilities of some simple Lyapunov inequalities, and they were successfully solved.
My question is: can the instance be solved by CDCS? If so, how to fix my code.
Thanks
I get the following error message if K.q = []
:
Operands to the || and && operators must be convertible to logical scalar
values.
Error in cdcs_utils.checkInputs (line 40)
if (isfield(K,'q') && max(K.q) > 0)
Error in cdcs (line 104)
[At,b,c,K,opts] = checkInputs(At,b,c,K,opts);
Of course I can get around that issue by deleting the field q
from K
before calling cdcs
.
However, it may be more user friendly to check that K.q
is nonempty in checkInputs
:
isfield(K,'q') && ~isempty(K.q) && max(K.q) > 0
Hi, I have a question regarding the function flatten in CDCS/packages/+cdcs_utils/flatten.m
.
I think I understand what it is supposed to do; namely take a cell array containing arrays of various sizes, flatten each one of them and stack them up in a big column.
The part that I am confused about is the inputs of this function.
The function takes in 3 different aguments, lower case z
, upper case Z
and a flag svecFlag
that is used to call CDCS/packages/+cdcs_utils/private/svec.c
.
However, I don't see the first argument (lower case z
) being used anywhere.
The last line of the function creates a lower case z
that is the returned object but as far as I understand this is not per say using the z
passed as input.
Is there something I am missing ?
Thanks a lot for any feedback :)
How does CDCS interpret a nonsymmetric SDP matrix ? For instance, if in the dual form,
A'y gives the matrix
[1 x
y 1]
what does it do ? Does it interpret it as
[1 (x+y)/2
(x+y)/2 1]
should be PSD (like SeDuMi does)
or that
[1 x
x 1]
should be PSD and y
should be equal to x
CDCS stops after maxIter iterations and returns a vector X that contains NaNs when I try to solve the following problem instance: prob.zip
I observe the same problem with many other problem instances. Could this be a problem with my installation or a bug in CDCS? I'm using the most recent version of CDCS from this repo with MATLAB R2017a on macOS.
clear all
load prob.mat
[x,y,sedumi_info] = sedumi(A,b,c,K);
opts = cdcsOpts;
opts.maxIter = 5000;
[xt,yt,zt,cdcs_info] = cdcs(A,b,c,K,opts);
any(isnan(xt))
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.