Skip to content

Commit

Permalink
separate K1x and Cholesky from pdcoO
Browse files Browse the repository at this point in the history
  • Loading branch information
dpo committed Mar 12, 2018
1 parent 04eb561 commit 4897b95
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
5 changes: 2 additions & 3 deletions Formulations/K1x.m
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
classdef K1x < pdcoO
classdef K1x < handle

properties
M
rhs
Expand All @@ -13,7 +13,6 @@

methods
function o = K1x(slack, options)
o = o@pdcoO(slack, options);
o.diagHess = true;
end

Expand Down
5 changes: 2 additions & 3 deletions Solvers/Cholesky.m
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
classdef Cholesky < pdcoO
classdef Cholesky < handle

properties
R
P
end

methods
function o = Cholesky(slack, options)
o = o@pdcoO(slack, options);
o.manage_op = false;
o.need_precon = false;
o.solver = ' Chol'; o.head3 = ' Chol';
Expand Down
3 changes: 2 additions & 1 deletion format_template.m
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
function newclass = format_template(formulation, solver)

template = ['classdef pdco_%s_%s < %s & %s\n' ...
template = ['classdef pdco_%s_%s < pdcoO & %s & %s\n' ...
' properties\n' ...
' end\n\n' ...
' methods\n' ...
' function o = pdco_%s_%s(slack, options)\n' ...
' o = o@pdcoO(slack, options);\n' ...
' o = o@%s(slack, options);\n' ...
' o = o@%s(slack, options);\n' ...
' end\n' ...
Expand Down

0 comments on commit 4897b95

Please sign in to comment.