25.11.2015 Views

The MOSEK command line tool Version 7.0 (Revision 141)

The MOSEK command line tool. Version 7.0 ... - Documentation

The MOSEK command line tool. Version 7.0 ... - Documentation

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.

14 CHAPTER 3. <strong>MOSEK</strong> AND AMPL<br />

ampl: option auxfiles rc;<br />

before the<br />

solve;<br />

<strong>command</strong> makes <strong>MOSEK</strong> obtain the constraint and variable names automatically.<br />

3.7 Which solution is returned to AMPL<br />

<strong>The</strong> <strong>MOSEK</strong> optimizer can produce three types of solutions: basic, integer, and interior point solutions.<br />

For non<strong>line</strong>ar problems only an interior solution is available. For <strong>line</strong>ar optimization problems optimized<br />

by the interior-point optimizer with basis identification turned on both a basic and an interior<br />

point solution are calculated. <strong>The</strong> simplex algorithm produces only a basic solution. Whenever both<br />

an interior and a basic solution are available, the basic solution is returned. For problems containing<br />

integer variables, the integer solution is returned to AMPL.<br />

3.8 Hot-start<br />

Frequently, a sequence of optimization problems is solved where each problem differs only slightly from<br />

the previous problem. In that case it may be advantageous to use the previous optimal solution to<br />

hot-start the optimizer. Such a facility is available in <strong>MOSEK</strong> only when the simplex optimizer is<br />

used.<br />

<strong>The</strong> hot-start facility exploits the AMPL variable suffix sstatus to communicate the optimal basis<br />

back to AMPL, and AMPL uses this facility to communicate an initial basis to <strong>MOSEK</strong>. <strong>The</strong> following<br />

example demonstrates this feature.<br />

ampl: model diet.mod;<br />

ampl: data diet.dat;<br />

ampl: option solver mosek;<br />

ampl: option mosek options<br />

ampl? ’msk ipar optimizer = msk optimizer primal simplex outlev=2’;<br />

ampl: solve;<br />

ampl: display Buy.sstatus;<br />

ampl: solve;<br />

<strong>The</strong> resulting output is:<br />

Accepted: msk ipar optimizer<br />

= MSK OPTIMIZER PRIMAL SIMPLEX<br />

Accepted: outlev = 2<br />

Computer - Platform : Linux/64-X86<br />

Computer - CPU type : Intel-P4<br />

<strong>MOSEK</strong> - task name :<br />

<strong>MOSEK</strong> - objective sense : min<br />

<strong>MOSEK</strong> - problem type : LO (<strong>line</strong>ar optimization problem)<br />

<strong>MOSEK</strong> - constraints : 7 variables : 9<br />

<strong>MOSEK</strong> - integer variables : 0<br />

Optimizer started.<br />

Simplex optimizer started.<br />

Presolve started.

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

Saved successfully!

Ooh no, something went wrong!