-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathformat_template.m
More file actions
21 lines (18 loc) · 974 Bytes
/
format_template.m
File metadata and controls
21 lines (18 loc) · 974 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
function newclass = format_template(formulation, solver)
template = ['classdef pdco_%s_%s < pdcoO & %s & %s\n' ...
' properties\n' ...
' end\n\n' ...
' methods\n' ...
' function o = pdco_%s_%s(slack, options_pdco, options_form, options_solv)\n' ...
' o = o@pdcoO(slack, options_pdco);\n' ...
' o = o@%s(options_form);\n' ...
' o = o@%s(options_solv);\n' ...
' end\n' ...
' end\n' ...
'end\n'];
newclass = sprintf(template, ...
formulation, solver, ...
formulation, solver, ...
formulation, solver, ...
formulation, solver);
end