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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Chapter 3<br />

<strong>MOSEK</strong> and AMPL<br />

AMPL is a modeling language for specifying <strong>line</strong>ar and non<strong>line</strong>ar optimization models in a natural<br />

way. AMPL also makes it easy to solve the problem and e.g. display the solution or part of it.<br />

We will not discuss the specifics of the AMPL language here but instead refer the reader to [1],<br />

http://ampl.com/BOOK/download.html and the AMPL website http://www.ampl.com.<br />

AMPL cannot solve optimization problems by itself but requires a link to an appropriate optimizer<br />

such as <strong>MOSEK</strong>. <strong>The</strong> <strong>MOSEK</strong> distribution includes an AMPL link which makes it possible to use<br />

<strong>MOSEK</strong> as an optimizer within AMPL.<br />

3.1 Invoking the AMPL shell<br />

<strong>The</strong> <strong>MOSEK</strong> distribution by default comes with the AMPL shell installed. To invoke the AMPL shell<br />

type:<br />

mampl<br />

3.2 Applicability<br />

It is possible to specify problems in AMPL that cannot be solved by <strong>MOSEK</strong>. <strong>The</strong> optimization<br />

problem must be a smooth convex optimization problem as discussed in Section 4.5.<br />

3.3 An example<br />

In many instances, you can successfully apply <strong>MOSEK</strong> simply by specifying the model and data,<br />

setting the solver option to <strong>MOSEK</strong>, and typing solve. First to invoke the AMPL shell type:<br />

mampl<br />

11

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

Saved successfully!

Ooh no, something went wrong!