plateform stringclasses 1
value | repo_name stringlengths 13 113 | name stringlengths 3 74 | ext stringclasses 1
value | path stringlengths 12 229 | size int64 23 843k | source_encoding stringclasses 9
values | md5 stringlengths 32 32 | text stringlengths 23 843k |
|---|---|---|---|---|---|---|---|---|
github | amcorrigan/IA-Lab-master | gaussFiltOffset.m | .m | IA-Lab-master/Filters/gaussFiltOffset.m | 1,775 | utf_8 | 3c47e3ae95addd318e6d79acb19301e9 | function fim = gaussFiltOffset(im,frad,offset,boundcon,relsiz)
% N-dimensional Gaussian filtering
% This works by permuting the image rather than the
% kernel so that the filtering is always done along the first dimension,
% which seems to be faster for some reason.
if nargin<5 || isempty(relsiz)
relsiz =... |
github | MelWe/mm-hypothesis-master | testvariancebaseddimandTVLIDAR.m | .m | mm-hypothesis-master/code/testvariancebaseddimandTVLIDAR.m | 17,901 | utf_8 | ce6eaeefa9d22ac2c81927608fc1d80d | function testvariancebaseddimandTVLIDAR( testid )
%This file illustrates the variance based intrinsic dimension code and
%total variance functions on the Bridge_87K.txt file
% This is a slight modification of Linda's code to work on neighborhood
% created using k nearest neighbors instead of epsilon balls.
if testi... |
github | MelWe/mm-hypothesis-master | testvariancebaseddimandTV.m | .m | mm-hypothesis-master/code/testvariancebaseddimandTV.m | 18,780 | utf_8 | 83380d1bbcb2228f43ae70132ada3231 | function testvariancebaseddimandTV( testid )
%This file illustrates the variance based intrinsic dimension code and
%total variance functions.
% a variant of the geodesic minimal spanning tree (GMST) to estimate
% the intrinsic dimension and entropy of the manifold on which the
% data lie.
% De... |
github | MelWe/mm-hypothesis-master | idimprob.m | .m | mm-hypothesis-master/code/vidim2code/idimprob.m | 1,907 | utf_8 | ad428ae3d0eed13d1868b9a7f0230b9d |
function [idim,firstscaleindex, scales,idimG,mxG,scaleprob,consecutive] = idimprob( CumG,q,groupdim,t,indG)
%CumG is a matrix whose rows are q groups of cumulative distributions
%of size groupdim
%t is a threshhold 0 <= t <= 1
%The function returns column index of the first element in each row
%which is >= t; if no su... |
github | MelWe/mm-hypothesis-master | idimprob2.m | .m | mm-hypothesis-master/code/vidim2code/idimprob2.m | 2,395 | utf_8 | 7cc95d6059d6370a0a744fcb71ce9bd5 |
function [idimsig, idimsigstats] = idimprob2( CumG,q,groupdim,t,indG,ballcount)
%CumG is a matrix whose rows are q groups of cumulative distributions
%of size groupdim
%t is a threshhold 0 <= t <= 1
%The function returns column index of the first element in each row
%which is >= t; if no such index exists, the functio... |
github | MelWe/mm-hypothesis-master | testvariancebaseddimLIDAR.m | .m | mm-hypothesis-master/code/vidimcode/testvariancebaseddimLIDAR.m | 21,008 | utf_8 | 134fa64fe2c0f09fad7d1c4fca69bd79 | function testvariancebaseddimLIDAR( testid )
%This file illustrates the variance based intrinsic dimension code and
%total variance functions on the Bridge_87K.txt file
if testid == 8
fnamedata = '/Users/lindaness/Documents/MATLAB/LIDAR2/Bridge_87K.txt';
data = dlmread(fnamedata);
x = data(:,1);
y = ... |
github | MelWe/mm-hypothesis-master | computevidim.m | .m | mm-hypothesis-master/code/vidimcode/computevidim.m | 16,974 | utf_8 | 305cfbbbc17b00669d077b04063972bf | function [data,idim] = computevidim( data,radii,K,varthreshhold,epszero,idimfigs,TVfigs, fname)
%This computes variance-based intrinsic dimension for the
%m x n data matrix. (The rows are the data points.)
%Two summaries idimsummary and istatssummary are displayed (and saved).
%The results are saved in the file [dirna... |
github | MelWe/mm-hypothesis-master | idimprob.m | .m | mm-hypothesis-master/code/vidimunpackedcode/idimprob.m | 1,907 | utf_8 | ad428ae3d0eed13d1868b9a7f0230b9d |
function [idim,firstscaleindex, scales,idimG,mxG,scaleprob,consecutive] = idimprob( CumG,q,groupdim,t,indG)
%CumG is a matrix whose rows are q groups of cumulative distributions
%of size groupdim
%t is a threshhold 0 <= t <= 1
%The function returns column index of the first element in each row
%which is >= t; if no su... |
github | xiaoxiaojiangshang/Programs-master | cvx_version.m | .m | Programs-master/matlab/cvx/cvx_version.m | 14,459 | utf_8 | 64d0f08cf9bf3c75fcad41acaf35a8c0 | function varargout = cvx_version( varargin )
% CVX_VERSION Returns version and environment information for CVX.
%
% When called with no arguments, CVX_VERSION prints out version and
% platform information that is needed when submitting CVX bug reports.
%
% This function is also used internally to return use... |
github | xiaoxiaojiangshang/Programs-master | cvx_grbgetkey.m | .m | Programs-master/matlab/cvx/cvx_grbgetkey.m | 19,096 | utf_8 | 080162e4fd27b14ea8387362148db7d1 | function success = cvx_grbgetkey( kcode, overwrite )
% CVX_GRBGETKEY Retrieves and saves a Gurobi/CVX license.
%
% This function is used to install Gurobi license keys for use in CVX. It
% is called with your Gurobi license code as a string argument; e.g.
%
% cvx_grbgetkey xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
% ... |
github | xiaoxiaojiangshang/Programs-master | HSDNTcorr.m | .m | Programs-master/matlab/cvx/sdpt3/HSDSolver/HSDNTcorr.m | 1,001 | utf_8 | c42eba1c6bae660b88921b7c8747490e | %%************************************************************************
%% HSDNTcorr: corrector step for the NT direction.
%%
%% SDPT3: version 3.1
%% Copyright (c) 1997 by
%% K.C. Toh, M.J. Todd, R.H. Tutuncu
%% Last Modified: 16 Sep 2004
%%************************************************************************
f... |
github | xiaoxiaojiangshang/Programs-master | HSDHKMdirfun.m | .m | Programs-master/matlab/cvx/sdpt3/HSDSolver/HSDHKMdirfun.m | 1,551 | utf_8 | 1034e25e48a42d2fa143f93f47961fe9 | %%*******************************************************************
%% HSDHKMdirfun: compute (dX,dZ), given dy, for the HKM direction.
%%
%% SDPT3: version 3.1
%% Copyright (c) 1997 by
%% K.C. Toh, M.J. Todd, R.H. Tutuncu
%% Last Modified: 16 Sep 2004
%%****************************************************************... |
github | xiaoxiaojiangshang/Programs-master | HSDsqlp.m | .m | Programs-master/matlab/cvx/sdpt3/HSDSolver/HSDsqlp.m | 11,860 | utf_8 | 00b8311a8efbee36662ca9288870a1cd | %%*****************************************************************************
%% HSDsqlp: solve an semidefinite-quadratic-linear program
%% by infeasible path-following method on the homogeneous self-dual model.
%%
%% [obj,X,y,Z,info,runhist] =
%% HSDsqlp(blk,At,C,b,OPTIONS,X0,y0,Z0);
%%
%% Input: blk: a cel... |
github | xiaoxiaojiangshang/Programs-master | HSDsortA.m | .m | Programs-master/matlab/cvx/sdpt3/HSDSolver/HSDsortA.m | 2,577 | utf_8 | 0a74ddbb8a0c79bf22592d780d865e06 | %%*********************************************************************
%% sortA: sort columns of At{p} in ascending order according to the
%% number of nonzero elements.
%%
%% [At,C,b,X0,Z0,permA,permZ] = sortA(blk,At,C,b,X0,Z0);
%%
%% SDPT3: version 3.1
%% Copyright (c) 1997 by
%% K.C. Toh, M.J. Todd, R.H. Tut... |
github | xiaoxiaojiangshang/Programs-master | HSDHKMrhsfun.m | .m | Programs-master/matlab/cvx/sdpt3/HSDSolver/HSDHKMrhsfun.m | 2,666 | utf_8 | 16409ae4672f80ef54a33c31ef30000f | %%*******************************************************************
%% HSDHKMrhsfun: compute the right-hand side vector of the
%% Schur complement equation for the HKM direction.
%%
%% SDPT3: version 3.1
%% Copyright (c) 1997 by
%% K.C. Toh, M.J. Todd, R.H. Tutuncu
%% Last Modified: 16 Sep 2004
%%*****... |
github | xiaoxiaojiangshang/Programs-master | HSDsqlpcheckconvg.m | .m | Programs-master/matlab/cvx/sdpt3/HSDSolver/HSDsqlpcheckconvg.m | 6,249 | utf_8 | a579e4972fd77d5cc3e11b72bf56d3a9 | %%*****************************************************************************
%% HSDsqlpcheckconvg: check convergence.
%%
%% ZpATynorm, AX, normX, normZ are with respect to the
%% original variables, not the HSD variables.
%%
%% SDPT3: version 3.1
%% Copyright (c) 1997 by
%% K.C. Toh, M.J. Todd, R.H. Tutuncu
%% Last ... |
github | xiaoxiaojiangshang/Programs-master | HSDNTdirfun.m | .m | Programs-master/matlab/cvx/sdpt3/HSDSolver/HSDNTdirfun.m | 1,459 | utf_8 | a045827a3ca1adcf8806cfd8234ad5e4 | %%*******************************************************************
%% HSDNTdirfun: compute (dX,dZ), given dy, for the NT direction.
%%
%% SDPT3: version 3.1
%% Copyright (c) 1997 by
%% K.C. Toh, M.J. Todd, R.H. Tutuncu
%% Last Modified: 16 Sep 2004
%%******************************************************************... |
github | xiaoxiaojiangshang/Programs-master | HSDNTrhsfun.m | .m | Programs-master/matlab/cvx/sdpt3/HSDSolver/HSDNTrhsfun.m | 3,424 | utf_8 | 02348c55d691a53b023639b8103757be | %%*******************************************************************
%% HSDNTrhsfun: compute the right-hand side vector of the
%% Schur complement equation for the NT direction.
%%
%% SDPT3: version 3.1
%% Copyright (c) 1997 by
%% K.C. Toh, M.J. Todd, R.H. Tutuncu
%% Last Modified: 16 Sep 2004
%%*********... |
github | xiaoxiaojiangshang/Programs-master | HSDHKMpred.m | .m | Programs-master/matlab/cvx/sdpt3/HSDSolver/HSDHKMpred.m | 2,644 | utf_8 | 81b89c36e0d0bad30836c551264a6a05 | %%*******************************************************************
%% HSDHKMpred: Compute (dX,dy,dZ) for the H..K..M direction.
%%
%% SDPT3: version 3.1
%% Copyright (c) 1997 by
%% K.C. Toh, M.J. Todd, R.H. Tutuncu
%% Last Modified: 16 Sep 2004
%%*******************************************************************
f... |
github | xiaoxiaojiangshang/Programs-master | HSDsqlpmain.m | .m | Programs-master/matlab/cvx/sdpt3/HSDSolver/HSDsqlpmain.m | 28,301 | utf_8 | df880652075e1e6d94eefd6ddfe38c64 | %%*****************************************************************************
%% HSDsqlp: solve an semidefinite-quadratic-linear program
%% by infeasible path-following method on the homogeneous self-dual model.
%%
%% [obj,X,y,Z,info,runhist] =
%% HSDsqlp(blk,At,C,b,OPTIONS,X0,y0,Z0,kap0,tau0,theta0);
%%
%% ... |
github | xiaoxiaojiangshang/Programs-master | HSDlinsysolve.m | .m | Programs-master/matlab/cvx/sdpt3/HSDSolver/HSDlinsysolve.m | 6,495 | utf_8 | 0644ae75443d221edcf585f5a5736fe5 | %%***************************************************************
%% linsysolve: solve linear system to get dy, and direction
%% corresponding to unrestricted variables.
%%
%% [xx,coeff,L,resnrm] = linsysolve(schur,UU,EE,Bmat,rhs);
%%
%% child functions: mybicgstable.m
%%
%% SDPT3: version 3.1
%% Copyright ... |
github | xiaoxiaojiangshang/Programs-master | HSDsqlpmisc.m | .m | Programs-master/matlab/cvx/sdpt3/HSDSolver/HSDsqlpmisc.m | 3,299 | utf_8 | f36316ddff8099a74241fa1590fc584a | %%*****************************************************************************
%% HSDsqlpmisc:
%% produce infeasibility certificates if appropriate
%%
%% Input: X,y,Z are the original variables, not the HSD variables.
%%
%% SDPT3: version 3.1
%% Copyright (c) 1997 by
%% K.C. Toh, M.J. Todd, R.H. Tutuncu
%% Last Modifi... |
github | xiaoxiaojiangshang/Programs-master | HSDbicgstab.m | .m | Programs-master/matlab/cvx/sdpt3/HSDSolver/HSDbicgstab.m | 3,084 | utf_8 | 96ee9f939e0b2527113539aa0b633ffc | %%*************************************************************************
%% HSDbicgstab
%%
%% [xx,resnrm,flag] = HSDbicgstab(A,b,M1,tol,maxit)
%%
%% iterate on bb - (M1)*AA*x
%%
%% r = b-A*xtrue;
%%
%%*************************************************************************
function [xx,resnrm,flag] = HSDbicgstab(... |
github | xiaoxiaojiangshang/Programs-master | HSDHKMcorr.m | .m | Programs-master/matlab/cvx/sdpt3/HSDSolver/HSDHKMcorr.m | 985 | utf_8 | 1e1983a66956f1d3e4e8e279b1dbe2d0 | %%*****************************************************************
%% HSDHKMcorr: corrector step for the HKM direction.
%%
%% SDPT3: version 3.1
%% Copyright (c) 1997 by
%% K.C. Toh, M.J. Todd, R.H. Tutuncu
%% Last Modified: 16 Sep 2004
%%*****************************************************************
function [par... |
github | xiaoxiaojiangshang/Programs-master | HSDNTpred.m | .m | Programs-master/matlab/cvx/sdpt3/HSDSolver/HSDNTpred.m | 2,034 | utf_8 | e194daf53d375b24154b1caf94b7646d | %%**********************************************************************
%% HSDNTpred: Compute (dX,dy,dZ) for NT direction.
%%
%% compute SVD of Xchol*Zchol via eigenvalue decompostion of
%% Zchol * X * Zchol' = V * diag(sv2) * V'.
%% compute W satisfying W*Z*W = X.
%% W = G'*G, where G = diag(sqrt(sv)) * (inv... |
github | xiaoxiaojiangshang/Programs-master | HSDsqlpCpert.m | .m | Programs-master/matlab/cvx/sdpt3/HSDSolver/HSDsqlpCpert.m | 2,263 | utf_8 | 326ec0065ebb155fab5ee8b4670ec0db | %%*****************************************************************************
%% HSDsqlpCpert: perturb C.
%%
%%*****************************************************************************
function [At,Cpert] = HSDsqlpCpert(blk,At,par,C,X,Cpert,runhist)
iter = length(runhist.pinfeas);
prim_infeas = runhist.pinfeas(... |
github | xiaoxiaojiangshang/Programs-master | cheby0.m | .m | Programs-master/matlab/cvx/sdpt3/Examples/cheby0.m | 2,576 | utf_8 | a31e95ee5e80694cd1c3f2ceb594d369 | %%**********************************************************
%% cheby0:
%%
%% minimize || p(d) ||_infty
%% p = polynomial of degree <= m such that p(0) = 1.
%%
%% Here d = n-vector
%%----------------------------------------------------------
%% [blk,Avec,C,b,X0,y0,Z0,objval,p] = cheby0(d,m,solve);
%%
%% d ... |
github | xiaoxiaojiangshang/Programs-master | randmat.m | .m | Programs-master/matlab/cvx/sdpt3/Solver/randmat.m | 782 | utf_8 | 44e2c609bf458ffd5a37d9f816a0ea1b | %%******************************************************
%% randmat: generate an mxn matrix using matlab's
%% rand or randn functions using state = k.
%%
%%******************************************************
function v = randmat(m,n,k,randtype)
try
s = rng;
rng(k);
if strcmp(randtype,'n')
... |
github | xiaoxiaojiangshang/Programs-master | skron.m | .m | Programs-master/matlab/cvx/sdpt3/Solver/skron.m | 1,389 | utf_8 | 3aba6bed9dc50b45f766b4a8620c4ac3 | %%***********************************************************************
%% skron: Find the matrix presentation of
%% symmetric kronecker product skron(A,B), where
%% A,B are symmetric.
%%
%% Important: A,B are assumed to be symmetric.
%%
%% K = skron(blk,A,B);
%%
%% blk: a cell array specifying the b... |
github | xiaoxiaojiangshang/Programs-master | NTcorr.m | .m | Programs-master/matlab/cvx/sdpt3/Solver/NTcorr.m | 1,315 | utf_8 | 458c52ec6bf00d3507df137889a53c7e | %%************************************************************************
%% NTcorr: corrector step for the NT direction.
%%
%% SDPT3: version 3.1
%% Copyright (c) 1997 by
%% K.C. Toh, M.J. Todd, R.H. Tutuncu
%% Last Modified: 16 Sep 2004
%%************************************************************************
func... |
github | xiaoxiaojiangshang/Programs-master | HKMcorr.m | .m | Programs-master/matlab/cvx/sdpt3/Solver/HKMcorr.m | 1,313 | utf_8 | ff69a87fe927bf7f964fd55cbf7ec718 | %%*****************************************************************
%% HKMcorr: corrector step for the HKM direction.
%%
%% SDPT3: version 3.1
%% Copyright (c) 1997 by
%% K.C. Toh, M.J. Todd, R.H. Tutuncu
%% Last Modified: 16 Sep 2004
%%*****************************************************************
function [dX,dy,... |
github | xiaoxiaojiangshang/Programs-master | steplength.m | .m | Programs-master/matlab/cvx/sdpt3/Solver/steplength.m | 5,590 | utf_8 | 2b52f7d5b9712cf17885f9ca3eaeb666 | %%***************************************************************************
%% steplength: compute xstep such that X + xstep*dX >= 0.
%%
%% [xstep] = steplength(blk,X,dX,Xchol,invXchol);
%%
%% SDPT3: version 3.1
%% Copyright (c) 1997 by
%% K.C. Toh, M.J. Todd, R.H. Tutuncu
%% Last Modified: 16 Sep 2004
%%***********... |
github | xiaoxiaojiangshang/Programs-master | SDPT3data_SEDUMIdata.m | .m | Programs-master/matlab/cvx/sdpt3/Solver/SDPT3data_SEDUMIdata.m | 3,843 | utf_8 | 26106829dfa4c0fbb1ca8c4aa9839fa8 | %%**********************************************************
%% SDPT3data_SEDUMIdata: convert SQLP data in SDPT3 format to
%% SeDuMi format
%%
%% [At,b,c,K] = SDPT3data_SEDUMIdata(blk,AAt,CC,bb);
%%
%% SDPT3: version 3.1
%% Copyright (c) 1997 by
%% K.C. Toh, M.J. Todd, R.H. Tutuncu
%% Last Modifie... |
github | xiaoxiaojiangshang/Programs-master | schurmat_sblk.m | .m | Programs-master/matlab/cvx/sdpt3/Solver/schurmat_sblk.m | 4,549 | utf_8 | f992891144a934ab4edffde2a692e435 | %%*******************************************************************
%% schurmat_sblk: compute Schur complement matrix corresponding to
%% SDP blocks.
%%
%% symm = 0, HKM
%% = 1, NT
%%
%% SDPT3: version 3.1
%% Copyright (c) 1997 by
%% K.C. Toh, M.J. Todd, R.H. Tutuncu
%% Last Modified: 16 Sep 2004
... |
github | xiaoxiaojiangshang/Programs-master | blktrace.m | .m | Programs-master/matlab/cvx/sdpt3/Solver/blktrace.m | 2,084 | utf_8 | 6a5c3d9ff74073a8e864c246727eaa86 | %%**********************************************************************
%% blktrace: compute <X1,Z1> + ... + <Xp,Zp>
%%
%% SDPT3: version 3.1
%% Copyright (c) 1997 by
%% K.C. Toh, M.J. Todd, R.H. Tutuncu
%% Last Modified: 16 Sep 2004
%%**********************************************************************
function tr... |
github | xiaoxiaojiangshang/Programs-master | sqlpu2lblk.m | .m | Programs-master/matlab/cvx/sdpt3/Solver/sqlpu2lblk.m | 3,099 | utf_8 | 1a67e45c349d19614e890521aed11db5 | %%***************************************************************************
%% sqlpu2lblk: decide whether to convert ublk to lblk
%%
%% SDPT3: version 3.1
%% Copyright (c) 1997 by
%% K.C. Toh, M.J. Todd, R.H. Tutuncu
%% Last Modified: 10 Jul 2007
%%*********************************************************************... |
github | xiaoxiaojiangshang/Programs-master | Prod3.m | .m | Programs-master/matlab/cvx/sdpt3/Solver/Prod3.m | 1,677 | utf_8 | 2ee9f0d732e5ea1f326bfcf275b0da3c | %%************************************************************
%% Prod3: compute the entries of Q = A*B*C specified in
%% nzlistQ.
%%
%% Q = Prod3(blk,A,B,C,sym,nzlistQ)
%% Important: (a) A is assumed to be symmetric if nzlistQ
%% has 2 columns (since mexProd2nz computes A'*B).
%% (b) T... |
github | xiaoxiaojiangshang/Programs-master | sqlptermcode.m | .m | Programs-master/matlab/cvx/sdpt3/Solver/sqlptermcode.m | 1,230 | utf_8 | 40b494719c3c614b6196dd9846778c4c | %%*************************************************************************
%% sqlptermcode.m: explains the termination code in sqlp.m
%%
%%
%% SDPT3: version 3.1
%% Copyright (c) 1997 by
%% K.C. Toh, M.J. Todd, R.H. Tutuncu
%% Last Modified: 16 Sep 2004
%%***************************************************************... |
github | xiaoxiaojiangshang/Programs-master | AXfun.m | .m | Programs-master/matlab/cvx/sdpt3/Solver/AXfun.m | 1,869 | utf_8 | e816cba65d629a72167375f9a7697b2f | %%*************************************************************************
%% AXfun: compute AX(k) = <Ak,X>, k = 1:m
%%
%% AX = AXfun(blk,At,permA,X);
%%
%% Note: permA may be set to [] if no permutation is neccessary.
%%
%% SDPT3: version 3.1
%% Copyright (c) 1997 by
%% K.C. Toh, M.J. Todd, R.H. Tutuncu
%% Last Mod... |
github | xiaoxiaojiangshang/Programs-master | NTpred.m | .m | Programs-master/matlab/cvx/sdpt3/Solver/NTpred.m | 1,963 | utf_8 | 3a2374e8ffa4806b637e50e551b9c17c | %%**********************************************************************
%% NTpred: Compute (dX,dy,dZ) for NT direction.
%%
%% compute SVD of Xchol*Zchol via eigenvalue decompostion of
%% Zchol * X * Zchol' = V * diag(sv2) * V'.
%% compute W satisfying W*Z*W = X.
%% W = G'*G, where G = diag(sqrt(sv)) * (invZch... |
github | xiaoxiaojiangshang/Programs-master | sqlp.m | .m | Programs-master/matlab/cvx/sdpt3/Solver/sqlp.m | 11,506 | utf_8 | d4acdbc7a5a1c0fd270f5d3de302c545 | %%*****************************************************************************
%% sqlp: solve an semidefinite-quadratic-linear program
%% by infeasible path-following method.
%%
%% [obj,X,y,Z,info,runhist] = sqlp(blk,At,C,b,OPTIONS,X0,y0,Z0);
%%
%% Input: blk: a cell array describing the block diagonal structu... |
github | xiaoxiaojiangshang/Programs-master | infeaspt.m | .m | Programs-master/matlab/cvx/sdpt3/Solver/infeaspt.m | 5,422 | utf_8 | ed7ce61d1094307a576ad8ddfd42bd30 | %%********************************************************************
%% infeaspt: generate an initial point for sdp.m
%%
%% [X0,y0,Z0] = infeaspt(blk,At,C,b,options,scalefac);
%%
%% options = 1 if want X0,Z0 to be scaled identity matrices
%% = 2 if want X0,Z0 to be scalefac*(identity matrices).
%%
%% SDP... |
github | xiaoxiaojiangshang/Programs-master | Arrow.m | .m | Programs-master/matlab/cvx/sdpt3/Solver/Arrow.m | 933 | utf_8 | 4a1803a8a960eba5462879d0ae4cbb78 | %%********************************************************
%% Arrow:
%%
%% Fx = Arrow(pblk,f,x,options);
%%
%% if options == 0;
%% Fx = Arr(F)*x
%% if options == 1;
%% Fx = Arr(F)^{-1}*x
%%
%% SDPT3: version 3.1
%% Copyright (c) 1997 by
%% K.C. Toh, M.J. Todd, R.H. Tutuncu
%% Last Modified: 16 Sep 2004
%%********... |
github | xiaoxiaojiangshang/Programs-master | mybicgstab.m | .m | Programs-master/matlab/cvx/sdpt3/Solver/mybicgstab.m | 3,536 | utf_8 | 7ae20f5d14c6533fd9a50b23a1e5c8b3 | %%*************************************************************************
%% mybicgstab
%%
%% [xx,resnrm,flag] = mybicgstab(A,b,M1,tol,maxit)
%%
%% iterate on bb - (M1)*AA*x
%%
%% r = b-A*xtrue;
%%
%%*************************************************************************
function [xx,resnrm,flag] = mybicgstab(A,b... |
github | xiaoxiaojiangshang/Programs-master | degeneracy.m | .m | Programs-master/matlab/cvx/sdpt3/Solver/degeneracy.m | 5,175 | utf_8 | 52287ec83b17f60c33554d7a25764672 | %%***************************************************************
%% degeneracy: determine if an SDP problem is non-degenerate.
%%
%% [ddx,ddz,B1,B2,sig1,sig12] = degeneracy(blk,At,X,y,Z);
%%
%% Assume that strict complementarity holds:
%% for primal non-degeneracy, we need rank([B1 B2]) = m
%% for dual non-degeneracy,... |
github | xiaoxiaojiangshang/Programs-master | mytime.m | .m | Programs-master/matlab/cvx/sdpt3/Solver/mytime.m | 557 | utf_8 | 2d076b8ed1091521bbe986194c6e2b84 | %%*********************************************
%% mytime:
%%
%% SDPT3: version 3.1
%% Copyright (c) 1997 by
%% K.C. Toh, M.J. Todd, R.H. Tutuncu
%% Last Modified: 16 Sep 2004
%%*********************************************
function [hh,mm,ss] = mytime(t)
t = round(t);
h = floor(t/3600);
m = floor(rem(t,3600)/60);
s ... |
github | xiaoxiaojiangshang/Programs-master | validate.m | .m | Programs-master/matlab/cvx/sdpt3/Solver/validate.m | 7,427 | utf_8 | 60774ce6b3bd16bde97e4078d89db39b | %%***********************************************************************
%% validate: validate data
%%
%%
%% SDPT3: version 3.1
%% Copyright (c) 1997 by
%% K.C. Toh, M.J. Todd, R.H. Tutuncu
%% Last Modified: 16 Sep 2004
%%***********************************************************************
function [blk,At,C,b,di... |
github | xiaoxiaojiangshang/Programs-master | svec.m | .m | Programs-master/matlab/cvx/sdpt3/Solver/svec.m | 2,027 | utf_8 | 43bbe7c274d2d1bfb1014fc2000f47e3 | %*********************************************************
%% svec: compute the vector svec(M),
%%
%% x = svec(blk,M,isspx);
%%
%% SDPT3: version 3.1
%% Copyright (c) 1997 by
%% K.C. Toh, M.J. Todd, R.H. Tutuncu
%% Last Modified: 16 Sep 2004
%%**********************************************************
function x = s... |
github | xiaoxiaojiangshang/Programs-master | read_sedumi.m | .m | Programs-master/matlab/cvx/sdpt3/Solver/read_sedumi.m | 7,265 | utf_8 | 2035885c053fc9de89cf19fa667603d2 | %%*******************************************************************
%% Read in a problem in SeDuMi format.
%%
%% [blk,A,C,b,perm] = read_sedumi(fname,b,c,K)
%%
%% Input: fname.mat = name of the file containing SDP data in
%% SeDuMi format.
%%
%% Important note: Sedumi's notation for free variab... |
github | xiaoxiaojiangshang/Programs-master | qprod.m | .m | Programs-master/matlab/cvx/sdpt3/Solver/qprod.m | 655 | utf_8 | 2d6550b139b2dfcf3d134f61deec3686 | %%***************************************************
%% qprod:
%%
%% Input: A = [A1 A2 ... An]
%% x = [x1; x2; ...; xn]
%% Output: [A1*x1 A2*x2 ... An*xn]
%%
%% SDPT3: version 3.1
%% Copyright (c) 1997 by
%% K.C. Toh, M.J. Todd, R.H. Tutuncu
%% Last Modified: 16 Sep 2004
%%**************************************... |
github | xiaoxiaojiangshang/Programs-master | nzlist.m | .m | Programs-master/matlab/cvx/sdpt3/Solver/nzlist.m | 5,014 | utf_8 | 1225b63fe9e00df09546243f60599dc2 | %%***********************************************************************
%% nzlist: find the combined list of non-zero elements
%% of Aj, j = 1:k, for each k,
%% assuming that the Aj's are permuted such that
%% A1 has the fewest nonzero elements, followed by A2, and so on.
%%
%% [isspA,nzlistA,... |
github | xiaoxiaojiangshang/Programs-master | detect_lblk.m | .m | Programs-master/matlab/cvx/sdpt3/Solver/detect_lblk.m | 4,228 | utf_8 | a69e3486a171d0169d9b62b749ed6cd8 | %%*******************************************************************
%% detect_lblk: detect diagonal blocks in the SDP data.
%%
%% [blk,At,C,diagblkinfo,blockchange,parbarrier,X,Z] = ...
%% detect_lblk(blk,At,C,b,parbarrier,X,Z);
%%
%% SDPT3: version 3.1
%% Copyright (c) 1997 by
%% K.C. Toh, M.J. Todd, R.H. ... |
github | xiaoxiaojiangshang/Programs-master | gdcomp.m | .m | Programs-master/matlab/cvx/sdpt3/Solver/gdcomp.m | 4,877 | utf_8 | edb240000afc00b0bd8d14fdc4ab944c | %%*********************************************************************
%% gdcomp: Compute gd = 1/td in Equation (15) of the paper:
%%
%% R.M. Freund, F. Ordonez, and K.C. Toh,
%% Behavioral measures and their correlation with IPM iteration counts
%% on semi-definite programming problems,
%% Mathematical Programming, 1... |
github | xiaoxiaojiangshang/Programs-master | blkbarrier.m | .m | Programs-master/matlab/cvx/sdpt3/Solver/blkbarrier.m | 1,795 | utf_8 | 77a6eb1f1708aa69217000d27735efa0 | %%********************************************************************
%% blkbarrier: calculate
%% [-v(p)*logdet(X{p}), v(p)*logdet(Z{p}) + n*v(p)*(1-log(v(p)))]
%% [-v(p)*log(gam(X{p})), v(p)*log(gam(Z{p})) + v(p)]
%% [-v(p)*log(X{p}), v(p)*log(Z{p}) + n*v(p)*(1-log(v(p)))]
%%***********************************... |
github | xiaoxiaojiangshang/Programs-master | sqlpmain.m | .m | Programs-master/matlab/cvx/sdpt3/Solver/sqlpmain.m | 29,812 | utf_8 | 97c549fe923480dc73e59887089d5656 | %%*************************************************************************
%% sqlp: main solver
%%
%%*************************************************************************
%% SDPT3: version 3.1
%% Copyright (c) 1997 by
%% K.C. Toh, M.J. Todd, R.H. Tutuncu
%% Last Modified: 16 Sep 2004
%%****************************... |
github | xiaoxiaojiangshang/Programs-master | HKMpred.m | .m | Programs-master/matlab/cvx/sdpt3/Solver/HKMpred.m | 2,818 | utf_8 | da0e8d9efacd9a7cebaae5ea2ad63de9 | %%*******************************************************************
%% HKMpred: Compute (dX,dy,dZ) for the H..K..M direction.
%%
%% SDPT3: version 3.1
%% Copyright (c) 1997 by
%% K.C. Toh, M.J. Todd, R.H. Tutuncu
%% Last Modified: 16 Sep 2004
%%*******************************************************************
func... |
github | xiaoxiaojiangshang/Programs-master | read_sdpa.m | .m | Programs-master/matlab/cvx/sdpt3/Solver/read_sdpa.m | 7,591 | utf_8 | 211ea10474df1ffe50a0c5456e1cbe41 | %%*******************************************************************
%% Read in a problem in SDPA sparse format.
%%
%% [blk,At,C,b] = read_sdpa(fname)
%%
%% Input: fname = name of the file containing SDP data in
%% SDPA foramt.
%% Important: the data is assumed to contain only
%% semide... |
github | xiaoxiaojiangshang/Programs-master | sortA.m | .m | Programs-master/matlab/cvx/sdpt3/Solver/sortA.m | 2,639 | utf_8 | c998ea7df87432b78f6c001d0bbc5318 | %%*********************************************************************
%% sortA: sort columns of At{p} in ascending order according to the
%% number of nonzero elements.
%%
%% [At,C,b,X0,Z0,permA,permZ] = sortA(blk,At,C,b,X0,Z0);
%%
%% SDPT3: version 3.1
%% Copyright (c) 1997 by
%% K.C. Toh, M.J. Todd, R.H. Tut... |
github | xiaoxiaojiangshang/Programs-master | blkeig.m | .m | Programs-master/matlab/cvx/sdpt3/Solver/blkeig.m | 2,412 | utf_8 | 97da97f8165585de45eae52a86e0f127 | %%***************************************************************************
%% blkeig: compute eigenvalue decomposition of a cell array
%% whose contents are square matrices or the diagonal
%% of a diagonal matrix.
%%
%% [d,V] = blkeig(blk,X);
%%
%% SDPT3: version 3.1
%% Copyright (c) 1997 by
%% K.C. ... |
github | xiaoxiaojiangshang/Programs-master | HKMrhsfun.m | .m | Programs-master/matlab/cvx/sdpt3/Solver/HKMrhsfun.m | 3,358 | utf_8 | b1e6a8305128af799634b9ef7324cfeb | %%*******************************************************************
%% HKMrhsfun: compute the right-hand side vector of the
%% Schur complement equation for the HKM direction.
%%
%% SDPT3: version 3.1
%% Copyright (c) 1997 by
%% K.C. Toh, M.J. Todd, R.H. Tutuncu
%% Last Modified: 16 Sep 2004
%%***********... |
github | xiaoxiaojiangshang/Programs-master | linsysolve.m | .m | Programs-master/matlab/cvx/sdpt3/Solver/linsysolve.m | 7,741 | utf_8 | 2091e9d1c0858acfd5c4e07842ed787d | %%***************************************************************
%% linsysolve: solve linear system to get dy, and direction
%% corresponding to unrestricted variables.
%%
%% [xx,coeff,L,resnrm] = linsysolve(schur,UU,Afree,EE,rhs);
%%
%% child functions: symqmr.m, mybicgstable.m, linsysolvefun.m
%%
%% SDPT... |
github | xiaoxiaojiangshang/Programs-master | schurmat_qblk.m | .m | Programs-master/matlab/cvx/sdpt3/Solver/schurmat_qblk.m | 3,205 | utf_8 | d154ddca57828c83c43efd37fbe64829 | %%*******************************************************************
%% schurmat_qblk: compute schur matrix corresponding to SOCP blocks.
%%
%% HKM direction: output = schur + Ax*Ae' + Ae*Ax' - Ad*Ad'
%% NT direction: output = schur + Ae*Ae' - Ad*Ad'
%%
%% where schur = A*D*A', and Ad is the modification to ADA'
%% s... |
github | xiaoxiaojiangshang/Programs-master | ops.m | .m | Programs-master/matlab/cvx/sdpt3/Solver/ops.m | 11,548 | utf_8 | 0931c97ce9eb7f01a28fac581153ca1c | %%******************************************************************
%% ops:
%%
%% Z = ops(X,operand,Y,alpha);
%%
%% INPUT: X = a matrix or a scalar
%% or a CELL ARRAY consisting only of matrices
%% operand = sym, transpose, triu, tril,
%% real, imag, sqrt, abs, ... |
github | xiaoxiaojiangshang/Programs-master | schurmat_lblk.m | .m | Programs-master/matlab/cvx/sdpt3/Solver/schurmat_lblk.m | 1,010 | utf_8 | 11b66919604e457c631f5ed67225fc45 | %%*******************************************************************
%% schurmat_lblk: compute A*D*A'
%%
%% SDPT3: version 3.1
%% Copyright (c) 1997 by
%% K.C. Toh, M.J. Todd, R.H. Tutuncu
%% Last Modified: 16 Sep 2004
%%*******************************************************************
function [schur,UU,EE] = schu... |
github | xiaoxiaojiangshang/Programs-master | sqlpmisc.m | .m | Programs-master/matlab/cvx/sdpt3/Solver/sqlpmisc.m | 4,078 | utf_8 | 1dc032b6e1fd72eb26f2f3e519a746dd | %%*****************************************************************************
%% sqlpmisc:
%% unscale and produce infeasibility certificates if appropriate
%%
%% SDPT3: version 3.1
%% Copyright (c) 1997 by
%% K.C. Toh, M.J. Todd, R.H. Tutuncu
%% Last Modified: 16 Sep 2004.
%%******************************************... |
github | xiaoxiaojiangshang/Programs-master | checkdense.m | .m | Programs-master/matlab/cvx/sdpt3/Solver/checkdense.m | 730 | utf_8 | 6d44b41643ef16f78b42927e1fc03dd8 | %%********************************************************************
%% checkdense : identify the dense columns of a matrix
%%
%% SDPT3: version 3.1
%% Copyright (c) 1997 by
%% K.C. Toh, M.J. Todd, R.H. Tutuncu
%% Last Modified: 16 Sep 2004
%%********************************************************************
funct... |
github | xiaoxiaojiangshang/Programs-master | NTrhsfun.m | .m | Programs-master/matlab/cvx/sdpt3/Solver/NTrhsfun.m | 4,253 | utf_8 | 51c74223afc232c456def8488b51aa3f | %%*******************************************************************
%% NTrhsfun: compute the right-hand side vector of the
%% Schur complement equation for the NT direction.
%%
%% SDPT3: version 3.1
%% Copyright (c) 1997 by
%% K.C. Toh, M.J. Todd, R.H. Tutuncu
%% Last Modified: 16 Sep 2004
%%***************... |
github | xiaoxiaojiangshang/Programs-master | SDPvalBounds.m | .m | Programs-master/matlab/cvx/sdpt3/Solver/SDPvalBounds.m | 1,843 | utf_8 | fa3af856805cc15685c38e69218a8ffb | %%*****************************************************************
%% compute lower and upper bounds for the exact primal
%% optimal value.
%%
%% LB <= true optimal dual value = true optimal primal value <= UB.
%%
%%*****************************************************************
function [LB,UB] = SDPvalBo... |
github | xiaoxiaojiangshang/Programs-master | NTscaling.m | .m | Programs-master/matlab/cvx/sdpt3/Solver/NTscaling.m | 1,847 | utf_8 | 82a266e8bf9cf33993f0bff10650c15c | %%**********************************************************************
%% NTscaling: Compute NT scaling matrix
%%
%% compute SVD of Xchol*Zchol via eigenvalue decompostion of
%% Zchol * X * Zchol' = V * diag(sv2) * V'.
%% compute W satisfying W*Z*W = X.
%% W = G'*G, where G = diag(sqrt(sv)) * (invZchol*V)'
%... |
github | xiaoxiaojiangshang/Programs-master | linsysolvefun.m | .m | Programs-master/matlab/cvx/sdpt3/Solver/linsysolvefun.m | 1,276 | utf_8 | 7ca4a2896ad33a210a95d53138f0676f | %%*************************************************************************
%% linsysolvefun: Solve H*x = b
%%
%% x = linsysolvefun(L,b)
%% where L contains the triangular factors of H.
%%
%% SDPT3: version 3.1
%% Copyright (c) 1997 by
%% K.C. Toh, M.J. Todd, R.H. Tutuncu
%% Last Modified: 16 Sep 2004
%%***************... |
github | xiaoxiaojiangshang/Programs-master | sqlpdemo.m | .m | Programs-master/matlab/cvx/sdpt3/Solver/sqlpdemo.m | 6,011 | utf_8 | 793deabad8688259781993ce346cea24 | %%*****************************************************************
%% Examples of SQLP.
%%
%% this is an illustration on how to use our SQLP solvers
%% coded in sqlp.m
%%
%% feas = 1 if want feasible initial iterate
%% = 0 otherwise
%%
%% SDPT3: version 3.1
%% Copyright (c) 1997 by
%% K.C. Toh, M.J. Todd, R.H. Tu... |
github | xiaoxiaojiangshang/Programs-master | gpcomp.m | .m | Programs-master/matlab/cvx/sdpt3/Solver/gpcomp.m | 5,095 | utf_8 | 7e23e98588f834156a9f13545f77cb3b | %%*********************************************************************
%% gpcomp: Compute tp=1/gp in Proposition 2 of the paper:
%%
%% R.M. Freund, F. Ordonez, and K.C. Toh,
%% Behavioral measures and their correlation with IPM iteration counts
%% on semi-definite programming problems,
%% Mathematical Programming, 109... |
github | xiaoxiaojiangshang/Programs-master | sqlparameters.m | .m | Programs-master/matlab/cvx/sdpt3/Solver/sqlparameters.m | 5,137 | utf_8 | 76bbd09e284250f7770836baabcc95e5 | %%*************************************************************************
%% parameters.m: set OPTIONS structure to specify default
%% parameters for sqlp.m
%%
%% OPTIONS.vers : version of direction to use.
%% 1 for HKM direction
%% 2 for NT direction
%... |
github | xiaoxiaojiangshang/Programs-master | convertcmpsdp.m | .m | Programs-master/matlab/cvx/sdpt3/Solver/convertcmpsdp.m | 3,465 | utf_8 | 6bd9a62cfb0249da5d75665cfb26063b | %%*********************************************************
%% convertcmpsdp: convert SDP with complex data into one
%% with real data by converting
%%
%% C - sum_{k=1}^m yk*Ak psd
%% to
%% [CR,-CI] - sum ykR*[AkR,-AkI] psd
%% [CI, CR] [AkI, AkR]
%%
%% ykI = 0 for k = 1:m
%%
%% [bblk,AAt,C... |
github | xiaoxiaojiangshang/Programs-master | sqlpsummary.m | .m | Programs-master/matlab/cvx/sdpt3/Solver/sqlpsummary.m | 4,047 | utf_8 | 78361a4e3dfeaeb73a7102b08ad30733 | %%*****************************************************************************
%% sqlpsummary: print summary
%%
%% SDPT3: version 3.1
%% Copyright (c) 1997 by
%% K.C. Toh, M.J. Todd, R.H. Tutuncu
%% Last Modified: 16 Sep 2004
%%*****************************************************************************
function sq... |
github | xiaoxiaojiangshang/Programs-master | checkdepconstr.m | .m | Programs-master/matlab/cvx/sdpt3/Solver/checkdepconstr.m | 6,926 | utf_8 | 186362786fef9d7d3328ab9e5a9e117c | %%*****************************************************************************
%% checkdepconst: compute AAt to determine if the
%% constraint matrices Ak are linearly independent.
%%
%% [At,b,y,idxB,neardepconstr,feasible,AAt] = checkdepconstr(blk,At,b,y,rmdepconstr);
%%
%% rmdepconstr = 1, if want to rem... |
github | xiaoxiaojiangshang/Programs-master | convertRcone.m | .m | Programs-master/matlab/cvx/sdpt3/Solver/convertRcone.m | 948 | utf_8 | afa3b210699dbf796a257cb53e92ef0d | %%***************************************************************
%% convertRcone: convert rotated cone to socp cone
%%
%% [blk,At,C,b,T] = convertRcone(blk,At,C,b);
%%
%%***************************************************************
function [blk,At,C,b,T] = convertRcone(blk,At,C,b)
T = cell(size(blk,1),1);
for p =... |
github | xiaoxiaojiangshang/Programs-master | qops.m | .m | Programs-master/matlab/cvx/sdpt3/Solver/qops.m | 1,421 | utf_8 | bddd4e93643ef0eb5b6868ef41d2bec7 | %%********************************************************
%% qops: Fu = qops(pblk,w,f,options,u);
%%
%% options = 1, Fu(i) = <wi,fi>
%% = 2, Fu(i) = 2*wi(1)*fi(1)-<wi,fi>
%% = 3, Fui = w(i)*fi
%% = 4, Fui = w(i)*fi, Fui(1) = -Fui(1).
%% options = 5, Fu = w [ f'*u ; ub + fb*alp ], where
%% ... |
github | xiaoxiaojiangshang/Programs-master | HKMdirfun.m | .m | Programs-master/matlab/cvx/sdpt3/Solver/HKMdirfun.m | 1,703 | utf_8 | 2e90b8de8daed6f5a9a6894232dbff6a | %%*******************************************************************
%% HKMdirfun: compute (dX,dZ), given dy, for the HKM direction.
%%
%% SDPT3: version 3.1
%% Copyright (c) 1997 by
%% K.C. Toh, M.J. Todd, R.H. Tutuncu
%% Last Modified: 16 Sep 2004
%%*******************************************************************... |
github | xiaoxiaojiangshang/Programs-master | symqmr.m | .m | Programs-master/matlab/cvx/sdpt3/Solver/symqmr.m | 3,957 | utf_8 | bf28cb72305cb0378a7b572d42f39ff6 | %%*************************************************************************
%% symqmr: symmetric QMR with left (symmetric) preconditioner.
%% The preconditioner used is based on the analytical
%% expression of inv(A).
%%
%% [x,resnrm,solve_ok] = symqmr(A,b,L,tol,maxit)
%%
%% child function: linsysolvefu... |
github | xiaoxiaojiangshang/Programs-master | validate_startpoint.m | .m | Programs-master/matlab/cvx/sdpt3/Solver/validate_startpoint.m | 3,067 | utf_8 | 572146bf8639c3d5066b6a790bca3ba8 | %%***********************************************************************
%% validate_startpoint: validate_startpoint starting point X0,y0,Z0
%%
%%
%% SDPT3: version 3.1
%% Copyright (c) 1997 by
%% K.C. Toh, M.J. Todd, R.H. Tutuncu
%% Last Modified: 16 Sep 2004
%%********************************************************... |
github | xiaoxiaojiangshang/Programs-master | Atyfun.m | .m | Programs-master/matlab/cvx/sdpt3/Solver/Atyfun.m | 1,471 | utf_8 | 5af173811d5528ab49ca2a48bd4748ce | %%*********************************************************
%% Atyfun: compute sum_{k=1}^m yk*Ak.
%%
%% Q = Atyfun(blk,At,permA,isspAy,y);
%%
%% Note: permA and isspAy may be set to [].
%%
%% SDPT3: version 3.1
%% Copyright (c) 1997 by
%% K.C. Toh, M.J. Todd, R.H. Tutuncu
%% Last Modified: 16 Sep 2004
%%**************... |
github | xiaoxiaojiangshang/Programs-master | blkcholfun.m | .m | Programs-master/matlab/cvx/sdpt3/Solver/blkcholfun.m | 1,247 | utf_8 | 6d78842d748fad818d79a003e1238916 | %%******************************************************************
%% blkcholfun: compute Cholesky factorization of X.
%%
%% [Xchol,indef] = blkcholfun(blk,X,permX);
%%
%% X = Xchol'*Xchol;
%%
%% SDPT3: version 3.1
%% Copyright (c) 1997 by
%% K.C. Toh, M.J. Todd, R.H. Tutuncu
%% Last Modified: 16 Sep 2004
%%*******... |
github | xiaoxiaojiangshang/Programs-master | smat.m | .m | Programs-master/matlab/cvx/sdpt3/Solver/smat.m | 880 | utf_8 | 184f4081013cebeae6150a22b224ebf9 | %%*********************************************************
%% smat: compute the matrix smat(x).
%%
%% M = smat(blk,x,isspM);
%%
%% SDPT3: version 3.1
%% Copyright (c) 1997 by
%% K.C. Toh, M.J. Todd, R.H. Tutuncu
%% Last Modified: 16 Sep 2004
%%**********************************************************
function M = ... |
github | xiaoxiaojiangshang/Programs-master | sqlpcheckconvg.m | .m | Programs-master/matlab/cvx/sdpt3/Solver/sqlpcheckconvg.m | 8,298 | utf_8 | 6acb41aefb05d5a53dbd501dabab2b33 | %%*****************************************************************************
%% sqlpcheckconvg: check convergence.
%%
%% SDPT3: version 3.1
%% Copyright (c) 1997 by
%% K.C. Toh, M.J. Todd, R.H. Tutuncu
%% Last Modified: 16 Sep 2004
%%*****************************************************************************
func... |
github | xiaoxiaojiangshang/Programs-master | SDPT3soln_SEDUMIsoln.m | .m | Programs-master/matlab/cvx/sdpt3/Solver/SDPT3soln_SEDUMIsoln.m | 2,743 | utf_8 | 1f7236a38116d782e7084afc40e90a10 | %%**********************************************************
%% SDPT3soln_SEDUMIsoln: convert SQLP solution in SDPT3 format to
%% SeDuMi format
%%
%% [xx,yy,zz] = SDPT3soln_SEDUMIsoln(blk,X,y,Z,perm);
%%
%% usage: load SEDUMI_data_file (containing say, A,b,c,K)
%% [blk,At,C,b,perm] = read_s... |
github | xiaoxiaojiangshang/Programs-master | detect_ublk.m | .m | Programs-master/matlab/cvx/sdpt3/Solver/detect_ublk.m | 2,815 | utf_8 | 819f087d73a97e1717b952ca2f3a407d | %%*******************************************************************
%% detect_ublk: search for implied free variables in linear
%% block.
%% [blk2,At2,C2,ublkinfo] = detect_ublk(blk,At,C);
%%
%% i1,i2: indices corresponding to splitting of unrestricted varaibles
%% i3 : remaining indices in the linear ... |
github | xiaoxiaojiangshang/Programs-master | combine_blk.m | .m | Programs-master/matlab/cvx/sdpt3/Solver/combine_blk.m | 2,358 | utf_8 | 205279faec8f7b11c04bc75707a6eb77 | %%*******************************************************************
%% combine_blk: combine small SDP blocks together,
%% combine all SOCP blocks together, etc
%%
%% [blk2,At2,C2,blkinfo] = combine_blk(blk,At,C);
%%
%%
%% SDPT3: version 3.1
%% Copyright (c) 1997 by
%% K.C. Toh, M.J. Todd, R.H. Tutuncu
%%... |
github | xiaoxiaojiangshang/Programs-master | Prod2.m | .m | Programs-master/matlab/cvx/sdpt3/Solver/Prod2.m | 1,882 | utf_8 | b291dcf07608872ed75bd82e48ff0b54 | %%*******************************************************************
%% Prod2: compute the block diagonal matrix A*B
%%
%% C = Prod2(blk,A,B,options);
%%
%% INPUT: blk = a cell array describing the block structure of A and B
%% A,B = square matrices or column vectors.
%%
%% options = 0 if no special str... |
github | xiaoxiaojiangshang/Programs-master | NTdirfun.m | .m | Programs-master/matlab/cvx/sdpt3/Solver/NTdirfun.m | 1,614 | utf_8 | a236e4d45e59db8824375b14ed6090a1 | %%*******************************************************************
%% NTdirfun: compute (dX,dZ), given dy, for the NT direction.
%%
%% SDPT3: version 3.1
%% Copyright (c) 1997 by
%% K.C. Toh, M.J. Todd, R.H. Tutuncu
%% Last Modified: 16 Sep 2004
%%*******************************************************************
... |
github | xiaoxiaojiangshang/Programs-master | make.m | .m | Programs-master/matlab/cvx/examples/make.m | 23,079 | utf_8 | 8b04233b872cb2ab50851644ae0e486a | function make( varargin )
%
% Determine the base path
%
odir = pwd;
base = mfilename('fullpath');
base = fileparts( base );
%
% Check the force and runonly flags
%
args = varargin;
is_octave = exist( 'OCTAVE_VERSION', 'builtin' );
if is_octave,
force = true;
runonly = true;
indexonly = false;
page_o... |
github | xiaoxiaojiangshang/Programs-master | cantilever_beam_plot.m | .m | Programs-master/matlab/cvx/examples/cvxbook/Ch04_cvx_opt_probs/cantilever_beam_plot.m | 1,050 | utf_8 | e8c8c9e1b601e4102f96e0436649d132 | % Plots a cantilever beam as a 3D figure.
% This is a helper function for the optimal cantilever beam example.
%
% Inputs:
% values: an array of heights and widths of each segment
% [h1 h2 ... hN w1 w2 ... wN]
%
% Almir Mutapcic 01/25/06
function cantilever_beam_plot(values)
N = length(values)/2;
for k ... |
github | xiaoxiaojiangshang/Programs-master | simple_step.m | .m | Programs-master/matlab/cvx/examples/circuit_design/simple_step.m | 235 | utf_8 | b8043326fe5966f9432b69b584891e0f | % Computes the step response of a linear system
function X = simple_step(A,B,DT,N)
n = size(A,1);
Ad = expm( full( A * DT ) );
Bd = ( Ad - eye(n) ) * B;
Bd = A \ Bd;
X = zeros(n,N);
for k = 2 : N,
X(:,k) = Ad*X(:,k-1)+Bd;
end
|
github | xiaoxiaojiangshang/Programs-master | spectral_fact.m | .m | Programs-master/matlab/cvx/examples/filter_design/spectral_fact.m | 1,292 | utf_8 | 014eebfa2dfbbd038c1383ff2ef97b0e | % Spectral factorization using Kolmogorov 1939 approach.
% (code follows pp. 232-233, Signal Analysis, by A. Papoulis)
%
% Computes the minimum-phase impulse response which satisfies
% given auto-correlation.
%
% Input:
% r: top-half of the auto-correlation coefficients
% starts from 0th element to end of the au... |
github | xiaoxiaojiangshang/Programs-master | polar_plot_ant.m | .m | Programs-master/matlab/cvx/examples/antenna_array_design/polar_plot_ant.m | 1,149 | utf_8 | 34a08a3bc75c474d61e01ea58b16e54e | % Plot a polar plot of an antenna array sensitivity
% with lines denoting the target direction and beamwidth.
% This is a helper function used in the broadband antenna examples.
%
% Inputs:
% X: an array of abs(y(theta)) where y is the antenna array pattern
% theta0: target direction
% bw: total beamw... |
github | xiaoxiaojiangshang/Programs-master | spectral_fact.m | .m | Programs-master/matlab/cvx/examples/antenna_array_design/spectral_fact.m | 1,385 | utf_8 | 570e7ae2165d19abd477494c52e609f8 | % Spectral factorization using Kolmogorov 1939 approach
% (code follows pp. 232-233, Signal Analysis, by A. Papoulis)
%
% Computes the minimum-phase impulse response which satisfies
% given auto-correlation.
%
% Input:
% r: top-half of the auto-correlation coefficients
% starts from 0th element to end of the aut... |
github | xiaoxiaojiangshang/Programs-master | plotgraph.m | .m | Programs-master/matlab/cvx/examples/graph_laplacian/plotgraph.m | 3,172 | utf_8 | a46b1d761798c492e96a5b9504aea9aa | function plotgraph(A,xy,weights)
% Plots a graph with each edge width proportional to its weight.
%
% Edges with positive weights are drawn in blue; negative weights in red.
%
% Input parameters:
% A --- incidence matrix of the graph (size is n x m)
% (n is the number of nodes and m is the number of e... |
github | xiaoxiaojiangshang/Programs-master | disp.m | .m | Programs-master/matlab/cvx/lib/@cvxprob/disp.m | 5,405 | utf_8 | c8f4506efcff564b81f1f3cc1dbb8a9c | function disp( prob, prefix )
if nargin < 2, prefix = ''; end
global cvx___
p = cvx___.problems( prob.index_ );
if isempty( p.variables ),
nvars = 0;
else
nvars = length( fieldnames( p.variables ) );
end
if isempty( p.duals ),
nduls = 0;
else
nduls = length( fieldnames( p.duals ) );
end
neqns = ( len... |
github | xiaoxiaojiangshang/Programs-master | apply.m | .m | Programs-master/matlab/cvx/lib/@cvxtuple/apply.m | 505 | utf_8 | f59f25021974462a358e5189ea5415e8 | function y = apply( func, x )
y = do_apply( func, x.value_ );
function y = do_apply( func, x )
switch class( x ),
case 'struct',
y = cell2struct( do_apply( func, struct2cell( x ) ), fieldnames( x ), 1 );
case 'cell',
y = cellfun( func, x, 'UniformOutput', false );
otherwise,
y = fev... |
github | xiaoxiaojiangshang/Programs-master | cvx_setdual.m | .m | Programs-master/matlab/cvx/lib/@cvxtuple/cvx_setdual.m | 954 | utf_8 | b6deb370985cc299023b091bbba5dfd6 | function x = setdual( x, y )
x.dual_ = y;
x.value_ = do_setdual( x.value_, y );
function x = do_setdual( x, y )
switch class( x ),
case 'struct',
nx = numel( x );
if nx > 1,
error( 'Dual variables may not be attached to struct arrays.' );
end
f = fieldnames(x);
y... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.