Skip to content

Dev #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 31 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
8f82cd2
brought over updated dfif
Mar 26, 2013
58b7687
Separating out the spot optimization classes
Mar 27, 2013
d603603
prepping update
Mar 27, 2013
19efff5
New data structure in between user and SDP representation.
Mar 27, 2013
3e6e191
Simple abstract class for solvers.
Mar 27, 2013
3fb7e55
Moving things around for new separation of sdp and solver.
Mar 27, 2013
8a2501b
added ignore file for MAC compilation products
Mar 28, 2013
a307fb1
broke up solving from SDP problem representation. Support for SeDuMi …
Mar 28, 2013
f0a78b3
renamed spotprog
Mar 28, 2013
67c5b27
new solvers, switched to mixed primal / dual representation for sdps
Mar 30, 2013
6ace60a
a little bit of cleanup
Mar 30, 2013
fa75b70
more exclusions of compliation products
Mar 30, 2013
e240c82
simple tests, not at all exhaustive
Mar 30, 2013
ad34cb3
simple todo list
Mar 30, 2013
62f5430
updating solver interface.
Mar 30, 2013
0b08f9d
Small errors left behind in switching to handling dual form.
Mar 30, 2013
dce7405
Basic spotprog support, layer between raw conic program and user.
Mar 31, 2013
d7db894
todo file
Apr 1, 2013
f801093
Added rotated lorentz cone support and tests. New functions for acce…
Apr 1, 2013
ce65d35
approximation of SDP by SDD. Also conversion of program to dual.
Apr 2, 2013
4d26799
removed some old files
Apr 2, 2013
20c4fe2
forgot to commit this crucial file.
Apr 2, 2013
9c17e90
removed some stale test files
Apr 2, 2013
75d3ac0
newFree,newPos,...
Apr 2, 2013
03840cf
updates
Apr 3, 2013
3f84563
updated installer
Apr 3, 2013
198fc3f
add solvers to install
Apr 3, 2013
0c963e3
bounding box
Apr 3, 2013
c15fa04
New gram basis calc.
Apr 3, 2013
cb46c8c
New monomial selection algorithm that uses facial reduction (Permenter,
Mar 26, 2014
c54d75a
Unit tests
Mar 26, 2014
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 25 additions & 18 deletions @msspoly/diff.m
Original file line number Diff line number Diff line change
Expand Up @@ -35,25 +35,32 @@
p = p(:);
end

% Find rows with xn(i) in them
match = msspoly.match_list(xn,p.var);
msk = match ~= 0;
[i,j] = ind2sub(size(p.var),find(msk));
[q,err]=double(p);

% match(msk) -- which column to place result in
% i -- which entries to draw var/pow/coeff from
% j -- which power to decrement / multiply by coeff

var = p.var(i,:);
coeff = p.coeff(i).*p.pow(msk);
pow = p.pow(i,:);
ind = sub2ind(size(pow),(1:length(i))',j);

pow(ind) = pow(ind) - 1;

J = msspoly([size(p,1) length(xn)],...
[ p.sub(i,1) match(msk) ],...
var,pow,coeff);
if ~err
J = zeros(size(p,1),size(x,1));

else
% Find rows with xn(i) in them
match = msspoly.match_list(xn,p.var);
msk = match ~= 0;
[i,j] = ind2sub(size(p.var),find(msk));

% match(msk) -- which column to place result in
% i -- which entries to draw var/pow/coeff from
% j -- which power to decrement / multiply by coeff

var = p.var(i,:);
coeff = p.coeff(i).*p.pow(msk);
pow = p.pow(i,:);
ind = sub2ind(size(pow),(1:length(i))',j);

pow(ind) = pow(ind) - 1;

J = msspoly([size(p,1) length(xn)],...
[ p.sub(i,1) match(msk) ],...
var,pow,coeff);
end

if nargin == 3
J = reshape(J*d,szp);
Expand Down
51 changes: 0 additions & 51 deletions @spotsqlsol/spotsqlsol.m

This file was deleted.

5 changes: 0 additions & 5 deletions README.txt

This file was deleted.

4 changes: 4 additions & 0 deletions bin/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
*.mexmaci64
*.mexmaci
*.mexa64
*.mexglx
73 changes: 0 additions & 73 deletions changelog.txt

This file was deleted.

53 changes: 0 additions & 53 deletions spot_chk.m

This file was deleted.

4 changes: 3 additions & 1 deletion spot_install.m
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,11 @@
addpath([potdir s 'util']);
addpath([potdir s 'mint']);
addpath([potdir s 'mss']);
addpath([potdir s 'spotopt']);
addpath([potdir s 'spotopt/solvers']);
fprintf('\n compiling the binaries...')
cd('bin');
mex mss_gset.c
mex mss_gsum.c
cd('..');
fprintf('\n Done.\n')
fprintf('\n Done.\n')
Binary file removed spot_manual.pdf
Binary file not shown.
Loading