Skip to content

Commit 4c049fa

Browse files
authored
Merge pull request #1515 from tholden/develop-memory
Minor changes to reduce memory usage
2 parents dae8e29 + 8daa12b commit 4c049fa

2 files changed

Lines changed: 12 additions & 10 deletions

File tree

extras/solvesdp.m

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -413,14 +413,16 @@
413413
end
414414
end
415415

416+
clear varargin;
417+
416418
% *************************************************************************
417419
% TRY TO SOLVE PROBLEM
418420
% *************************************************************************
419421
if options.debug
420-
eval(['output = ' solver.call '(interfacedata);']);
422+
output = feval( solver.call, interfacedata );
421423
else
422424
try
423-
eval(['output = ' solver.call '(interfacedata);']);
425+
output = feval( solver.call, interfacedata );
424426
catch
425427
output = createOutputStructure(zeros(length(interfacedata.c),1)+NaN,[],[],9,yalmiperror(9,lasterr),[],[],nan);
426428
end

solvers/callmosek.m

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22

33
% Retrieve needed data
44
options = model.options;
5-
F_struc = model.F_struc;
6-
c = model.c;
7-
Q = model.Q;
8-
K = model.K;
9-
x0 = model.x0;
10-
integer_variables = model.integer_variables;
11-
binary_variables = model.binary_variables;
12-
extended_variables = model.extended_variables;
5+
% F_struc = model.F_struc;
6+
% c = model.c;
7+
% Q = model.Q;
8+
% K = model.K;
9+
% x0 = model.x0;
10+
% integer_variables = model.integer_variables;
11+
% binary_variables = model.binary_variables;
12+
% extended_variables = model.extended_variables;
1313
ub = model.ub;
1414
lb = model.lb;
1515
mt = model.monomtable;

0 commit comments

Comments
 (0)