25.11.2015 Views

The MOSEK optimization toolbox for MATLAB manual Version 7.0 (Revision 141)

MATLAB optimization toolbox manual - Documentation - Mosek

MATLAB optimization toolbox manual - Documentation - Mosek

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

iv<br />

CONTENTS<br />

6 <strong>MOSEK</strong> / <strong>MATLAB</strong> integration 19<br />

6.1 <strong>MOSEK</strong> replacements <strong>for</strong> <strong>MATLAB</strong> functions . . . . . . . . . . . . . . . . . . . . . . . 19<br />

6.2 <strong>The</strong> license system . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19<br />

6.2.1 Waiting <strong>for</strong> a free license . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20<br />

6.2.2 Using <strong>MOSEK</strong> with the Parallel Computing Toolbox . . . . . . . . . . . . . . . . 20<br />

7 A guided tour 21<br />

7.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21<br />

7.2 <strong>The</strong> tour starts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21<br />

7.3 <strong>The</strong> <strong>MOSEK</strong> terminology . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22<br />

7.4 Linear <strong>optimization</strong> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22<br />

7.4.1 Using msklpopt . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23<br />

7.4.2 Using mosekopt . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23<br />

7.4.3 Using linprog . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25<br />

7.5 Convex quadratic <strong>optimization</strong> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25<br />

7.5.1 Two important assumptions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26<br />

7.5.2 Using mskqpopt . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26<br />

7.5.3 Using mosekopt . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27<br />

7.6 Conic <strong>optimization</strong> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28<br />

7.6.1 <strong>The</strong> conic <strong>optimization</strong> problem . . . . . . . . . . . . . . . . . . . . . . . . . . . 28<br />

7.6.2 Solving an example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29<br />

7.6.3 Quadratic and conic <strong>optimization</strong> . . . . . . . . . . . . . . . . . . . . . . . . . . . 30<br />

7.6.4 Conic duality and the dual solution . . . . . . . . . . . . . . . . . . . . . . . . . 32<br />

7.6.5 Setting accuracy parameters <strong>for</strong> the conic optimizer . . . . . . . . . . . . . . . . 33<br />

7.7 Semidefinite <strong>optimization</strong> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34<br />

7.7.1 <strong>The</strong> semidefinite <strong>optimization</strong> problem . . . . . . . . . . . . . . . . . . . . . . . . 34<br />

7.7.2 Solving an example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35<br />

7.7.3 Linear matrix inequalities . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37<br />

7.8 Quadratically constrained <strong>optimization</strong> . . . . . . . . . . . . . . . . . . . . . . . . . . . 37<br />

7.9 Linear least squares and related norm minimization problems . . . . . . . . . . . . . . 38<br />

7.9.1 <strong>The</strong> case of the 2 norm . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39<br />

7.9.2 <strong>The</strong> case of the infinity norm . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40<br />

7.9.3 <strong>The</strong> case of the 1-norm . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41<br />

7.10 Compatibility with <strong>MATLAB</strong> Optimization Toolbox . . . . . . . . . . . . . . . . . . . 42<br />

7.11 More about solving linear least squares problems . . . . . . . . . . . . . . . . . . . . . 43<br />

7.11.1 Using conic <strong>optimization</strong> on linear least squares problems . . . . . . . . . . . . . 47<br />

7.12 Entropy <strong>optimization</strong> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48<br />

7.12.1 Using mskenopt . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48<br />

7.13 Geometric <strong>optimization</strong> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48<br />

7.13.1 Using mskgpopt . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49<br />

7.13.2 Comments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51<br />

7.14 Separable convex <strong>optimization</strong> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52<br />

7.14.1 Using mskscopt . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53<br />

7.15 Mixed-integer <strong>optimization</strong> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55<br />

7.15.1 A linear mixed-integer example . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55<br />

7.15.2 A conic quadratic mixed-integer example . . . . . . . . . . . . . . . . . . . . . . 56

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!