📄 readme
字号:
SPGL1: Spectral Projected Gradient for L1 minimization------------------------------------------------------1. Introduction===============Thank you for downloading the SPGL1 solver! SPGL1 is a Matlab solverfor large-scale one-norm regularized least squares. It is designed tosolve any of the following three problems:1. Basis pursuit denoise (BPDN): minimize ||x||_1 subject to ||Ax - b||_2 <= sigma,2. Basis pursuit (BP): minimize ||x||_1 subject to Ax = b 3. Lasso: minimize ||Ax - b||_2 subject to ||x||_1 <= tau,The matrix A can be defined explicily, or as an operator (i.e., afunction) that return both both Ax and A'y. SPGL1 can solve thesethree problems in both the real and complex domains.2. Quick start==============Start Matlab and make sure the working directory is set to thedirectory containing the SPGL1 source files. When this is done, run >> spgdemoat the Matlab prompt. This script illustrates various uses of SPGL1:- Solve (BPDN) for some sigma > 0- Solve (Lasso)- Solve (BP)- Solve a (BP) problem in complex variables- Sample the entire Pareto frontier (i.e., ||Ax-b||_2 vs ||x||_1) for a small test problem.3. Installation===============3.1 MEX interface------------------A vital component of SPGL1 is a routine (oneProjector.m) forprojecting vectors onto the one-norm ball. The default distributionincludes a pure Matlab version of oneProjector which should work onall platforms, and also a C-version of this routine that is moreefficient on large problems. Precompiled MEX interfaces to the Cimplementation of oneProjector are included for Windows(oneProjector.dll), Linux/x86 (oneProjector.mexglx) and MacOSX/Intel(oneProjector.mexmaci). If you need to compile the MEX interface onyour own machine, run the following command at the Matlab prompt: >> spgsetupor, equivalently, change to the "private" directory and issue thecommand >> mex oneProjector.c oneProjector_core.c -output oneProjector -DNDEBUGIf the MEX interface cannot be found, SPGL1 falls back to the slowerMatlab implementation of oneProjector.3.2 Path---------In order to use SPGL1 from any directory other than the onecontaining the main spgl1 routine, add the SPGL1 package to yourdefault path: >> addpath <dir-name>where <dir-name> is the location of spgl1.m. You can also add thiscommand to your startup.m file.4. References=============The algorithm implemented by SPGL1 is described in the paperE. van den Berg and M. P. Friedlander, "Probing the Pareto frontierfor basis pursuit solutions", UBC Computer Science Technical ReportTR-2008-01, January 2008. Available athttp://www.optimization-online.org/DB_FILE/2008/01/1889.pdf$Id: README 769 2008-01-29 23:19:36Z mpf $
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -