4 Installation

In this section we discuss how to install and setup the MOSEK Command Line Tools.

Important

Before running this MOSEK interface please make sure that you:

  • Installed MOSEK correctly. Some operating systems require extra steps. See the Installation guide for instructions and common troubleshooting tips.

  • Set up a license. See the Licensing guide for instructions.

Locating files in the MOSEK Optimization Suite

The relevant files of the Command Line Tools are organized as reported in Table 4.1.

Table 4.1 Relevant files for the Command Line Tools.

Relative Path

Description

Label

<MSKHOME>/mosek/10.1/tools/platform/<PLATFORM>/bin

Binaries

<BINDIR>

<MSKHOME>/mosek/10.1/tools/platform/<PLATFORM>/bin/mosek

Mosek executable

<MSKHOME>/mosek/10.1/tools/examples/data

Examples

<EXDIR>

where

  • <MSKHOME> is the folder in which the MOSEK Optimization Suite has been installed,

  • <PLATFORM> is the actual platform among those supported by MOSEK, i.e. win32x86, win64x86, linux64x86 or osx64x86.

Setting up paths

The executable file is ready for use. It may be convenient to add the directory <BINDIR> to the environment variable PATH, and then MOSEK can simply be used by typing

mosek

in the command line.

4.1 Testing the installation

To test that Command Line Tools has been installed correctly go to the examples directory <EXDIR> and run MOSEK on any of the input files, for example lo1.mps:

mosek lo1.mps

Is should produce output similar to:

MOSEK Version 8.0.0.53 (Build date: 2017-1-12 22:21:45)
Copyright (c) MOSEK ApS, Denmark. WWW: mosek.com
Platform: Linux/64-X86

Open file 'lo1.mps'
Reading started.

[....]

Optimizer started.
Interior-point optimizer started.

[....]

Interior-point solution summary
  Problem status  : PRIMAL_AND_DUAL_FEASIBLE
  Solution status : OPTIMAL
  Primal.  obj: 8.3333333280e+01    nrm: 5e+01    Viol.  con: 1e-08    var: 0e+00
  Dual.    obj: 8.3333333242e+01    nrm: 4e+00    Viol.  con: 2e-10    var: 5e-09

Basic solution summary
  Problem status  : PRIMAL_AND_DUAL_FEASIBLE
  Solution status : OPTIMAL
  Primal.  obj: 8.3333333333e+01    nrm: 5e+01    Viol.  con: 7e-15    var: 0e+00
  Dual.    obj: 8.3333333245e+01    nrm: 4e+00    Viol.  con: 2e-10    var: 5e-09

[....]

Open file 'lo1.sol'
Start writing.
done writing. Time: 0.00

Open file 'lo1.bas'
Start writing.
done writing. Time: 0.00

Return code - 0  [MSK_RES_OK]