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.

20 CHAPTER 6. <strong>MOSEK</strong> / <strong>MATLAB</strong> INTEGRATION<br />

implies that the license is released immediately after the optimizer has terminated.<br />

It should however be noted that there is a small overhead associated with checking out a license token<br />

from the license server.<br />

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

By default an error will be returned if no license token is available. By setting the parameter<br />

MSK IPAR LICENSE WAIT<strong>MOSEK</strong> can be instructed to wait until a license token is available.<br />

param.MSK IPAR LICENSE WAIT = ’MSK ON’; %set parameter.<br />

[r,res] = mosekopt(’minimize’,prob,param); %call mosek.<br />

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

Running <strong>MOSEK</strong> with the Parallel Computing Toolbox requires multiple <strong>MOSEK</strong> licenses, since each<br />

thread runs a separate instance of the <strong>MOSEK</strong> optimizer. Each thread thus requires a <strong>MOSEK</strong> license.

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

Saved successfully!

Ooh no, something went wrong!