This is a static copy of a profile report

Home

Function details for qap_admm_blkdiag>load_settingThis is a static copy of a profile report

Home

qap_admm_blkdiag>load_setting (Calls: 1, Time: 0.073 s)
Generated 20-Jul-2018 02:24:59 using performance time.
subfunction in file C:\Users\yz\Dropbox\Workspace\Researches\PhD Research\My Papers\2018_symmtry_reduction\18groupsymmetrySDPSlaterHaoRenata.d\codesgroupsymmetrySDPSlaterHaoRenata.d\qap\qap_admm_blkdiag.m
Copy to new window for comparing multiple runs

Parents (calling functions)

Function NameFunction TypeCalls
qap_admm_blkdiagfunction1
Lines where the most time was spent

Line NumberCodeCallsTotal Time% TimeTime Plot
265
if ~isfield(opts,'Y');        ...
10.022 s30.4%
268
if ~isfield(opts,'scalar');   ...
10.006 s8.3%
271
opts.scalar = (norm(BXA,'fro')...
10.006 s8.2%
261
if ~isfield(opts,'maxit');    ...
10.006 s7.8%
264
if ~isfield(opts,'beta');     ...
10.004 s5.6%
All other lines  0.029 s39.7%
Totals  0.073 s100% 
Children (called functions)
No children
Code Analyzer results
Line numberMessage
258The value assigned to variable 'n' might be unused.
261Extra semicolon is unnecessary in END statement before newline.
262Extra semicolon is unnecessary in END statement before newline.
263Extra semicolon is unnecessary in END statement before newline.
264Extra semicolon is unnecessary in END statement before newline.
265Extra semicolon is unnecessary in END statement before newline.
266Extra semicolon is unnecessary in END statement before newline.
267Extra semicolon is unnecessary in END statement before newline.
268Extra semicolon is unnecessary in END statement before newline.
Coverage results
Show coverage for parent directory
Total lines in function26
Non-code lines (comments, blank lines)11
Code lines (lines that can run)15
Code lines that did run15
Code lines that did not run0
Coverage (did run/can run)100.00 %
Function listing
time 
Calls 
 line
 255 
function [opts,output] = load_setting(opts,BXA)
 256 

< 0.001 
      1 
 257
m = length(BXA); 
< 0.001 
      1 
 258
n = sqrt(m); 
 259 

 260 
%% load the setting
  0.006 
      1 
 261
if ~isfield(opts,'maxit');       opts.maxit = 25000;             end; 
< 0.001 
      1 
 262
if ~isfield(opts,'tol');         opts.tol = 1e-5;                end; 
  0.004 
      1 
 263
if ~isfield(opts,'gamma');        opts.gamma = (1+sqrt(5))/2;           end; 
  0.004 
      1 
 264
if ~isfield(opts,'beta');         opts.beta = m;            end; 
  0.022 
      1 
 265
if ~isfield(opts,'Y');            opts.Y = zeros(m+1); opts.Y(end,end)=1;    end; 
  0.003 
      1 
 266
if ~isfield(opts,'Z');            opts.Z = zeros(m+1);                  end; 
  0.003 
      1 
 267
if ~isfield(opts,'print');        opts.print = 1;                       end; 
  0.006 
      1 
 268
if ~isfield(opts,'scalar');       opts.scalar = 1;        end; 
 269 

 270 

  0.006 
      1 
 271
opts.scalar = (norm(BXA,'fro')*m); 
  0.001 
      1 
 272
opts.scalar = 1; 
 273 
% opts.scalar = m/norm(Q,'fro');
 274 
% opts.scalar = 1/(norm(Q,'fro')*m);
 275 
% opts.scalar = 1/norm(Q,'fro');
 276 

  0.003 
      1 
 277
output.exitflag = 'not converged'; 
 278 
% % save the initial settings
  0.002 
      1 
 279
output.setting = opts; % save the initial settings 
< 0.001 
      1 
 280
end 

Other subfunctions in this file are not included in this listing.