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.

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

Value Message<br />

0 the solution is optimal.<br />

100 suboptimal primal solution.<br />

101 superoptimal (dual feasible) solution.<br />

150 the solution is near optimal.<br />

200 primal infeasible problem.<br />

300 dual infeasible problem.<br />

400 too many iterations.<br />

500 solution status is unknown.<br />

501 ill-posed problem, solution status is unknown.<br />

≥ 501 <strong>The</strong> value - 501 is a <strong>MOSEK</strong> response code.<br />

See Appendix 10 for all <strong>MOSEK</strong> response codes.<br />

Figure 3.1: Interpretation of solve result num.<br />

when the AMPL shell has started type the <strong>command</strong>s:<br />

ampl: model diet.mod;<br />

ampl: data diet.dat;<br />

ampl: option solver mosek;<br />

ampl: solve;<br />

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

<strong>MOSEK</strong> finished.<br />

Problem status - PRIMAL AND DUAL FEASIBLE<br />

Solution status - OPTIMAL<br />

Primal objective - 14.8557377<br />

Dual objective - 14.8557377<br />

Objective = Total Cost<br />

3.4 Determining the outcome of an optimization<br />

<strong>The</strong> AMPL parameter solve result num is used to indicate the outcome of the optimization process.<br />

It is used as follows<br />

ampl: display solve result num<br />

Please refer to table 3.1 for possible values of this parameter.<br />

3.5 Optimizer options<br />

3.5.1 <strong>The</strong> <strong>MOSEK</strong> parameter database<br />

<strong>The</strong> <strong>MOSEK</strong> optimizer has options and parameters controlling such things as the termination criterion<br />

and which optimizer is used. <strong>The</strong>se parameters can be modified within AMPL as shown in the example

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

Saved successfully!

Ooh no, something went wrong!