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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

28 CHAPTER 7. A GUIDED TOUR<br />

34<br />

35 % Upper bounds of variables.<br />

36 prob.bux = []; % <strong>The</strong>re are no bounds.<br />

37<br />

38 [r,res] = mosekopt(’minimize’,prob);<br />

39<br />

40 % Display return code.<br />

41 fprintf(’Return code: %d\n’,r);<br />

42<br />

43 % Display primal solution <strong>for</strong> the constraints.<br />

44 res.sol.itr.xc’<br />

45<br />

46 % Display primal solution <strong>for</strong> the variables.<br />

47 res.sol.itr.xx’<br />

This sequence of commands looks much like the one that was used to solve the linear <strong>optimization</strong><br />

example using mosekopt except that the definition of the Q matrix in prob. mosekopt requires that<br />

Q is specified in a sparse <strong>for</strong>mat. Indeed the vectors qosubi, qosubj, and qoval are used to specify<br />

the coefficients of Q in the objective using the principle<br />

Q qosubi(t),qosubj(t) = qoval(t), <strong>for</strong> t = 1, . . . , length(qosubi).<br />

An important observation is that due to Q being symmetric, only the lower triangular part of Q should<br />

be specified.<br />

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

One way of generalizing a linear <strong>optimization</strong> problem is to include a constraint of the <strong>for</strong>m<br />

x ∈ C<br />

in the problem definition where C is required to be a convex cone. <strong>The</strong> resulting class of problems is<br />

known as conic <strong>optimization</strong>. <strong>MOSEK</strong> can solve a subset of all conic problems and subsequently it is<br />

demonstrated how to solve this subset using the mosekopt <strong>toolbox</strong> function.<br />

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

A conic <strong>optimization</strong> problem has the following <strong>for</strong>m<br />

minimize<br />

c T x + c f<br />

subject to l c ≤ Ax ≤ u c ,<br />

l x ≤ x ≤ u x ,<br />

x ∈ C,<br />

where C must satisfy the following requirements. Let<br />

(7.5)<br />

x t ∈ R nt , t = 1, . . . , k

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

Saved successfully!

Ooh no, something went wrong!