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.

32 CHAPTER 7. A GUIDED TOUR<br />

1 % cqo2.m<br />

2<br />

3 [r, res] = mosekopt(’symbcon’);<br />

4<br />

5 % Set up the non-conic part of the problem.<br />

6 prob = [];<br />

7 prob.c = [1 1 1 0 0 0 0]’;<br />

8 prob.a = sparse([[1 0 1 0 1 0 0];...<br />

9 [0 1 0 0 0 0 -1]]);<br />

10 prob.blc = [0.5 0];<br />

11 prob.buc = [0.5 0];<br />

12 prob.blx = [-inf -inf -inf 1 -inf 1 -inf];<br />

13 prob.bux = [inf inf inf 1 inf 1 inf];<br />

14<br />

15 % Set up the cone in<strong>for</strong>mation.<br />

16 prob.cones.type = [res.symbcon.MSK CT QUAD, ...<br />

17 res.symbcon.MSK CT RQUAD];<br />

18 prob.cones.sub = [4, 1, 2, 3, 5, 6, 7];<br />

19 prob.cones.subptr = [1, 5];<br />

20<br />

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

22<br />

23 % Display the solution.<br />

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

[ cqo2.m ]<br />

7.6.4 Conic duality and the dual solution<br />

<strong>The</strong> dual problem corresponding to the conic <strong>optimization</strong> problem (7.5) is given by<br />

maximize (l c ) T s c l − (u c ) T s c u<br />

+ (l x ) T s x l − (u x ) T s x u + c f<br />

subject to − y + s c l − s c u = 0,<br />

A T y + s x l − s x u + s x n = c,<br />

s c l , s c u, s x l , s x u ≥ 0,<br />

s x n ∈ C ∗<br />

where the dual cone C ∗ is defined as follows. Let (s x n) be partitioned similar to x, i.e. if x j is a member<br />

of x t , then (s x n) j is a member of (s x n) t as well. Now, the dual cone is defined by<br />

C ∗ :=<br />

{<br />

}<br />

s x n ∈ R nt<br />

: (s x n) t ∈ Ct ∗ , t = 1, . . . , k<br />

where the type of Ct<br />

∗ is dependent on the type of C t . For the cone types <strong>MOSEK</strong> can handle the<br />

relation between the primal and dual cones is given as follows:<br />

• R set:<br />

C t =<br />

{<br />

x ∈ R nt} {<br />

}<br />

⇔ Ct ∗ := s ∈ R nt : s = 0 .

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

Saved successfully!

Ooh no, something went wrong!