4 Installation

4.1 Downloading and setting up

4.1.1 Anaconda Python setup

If MOSEK is only used from Python, then it is recommended to employ the Anaconda distribution of Python and the MOSEK Anaconda package. Particularly, on Windows this simplifies the installation process. The Anaconda distribution of Python is available at https://www.continuum.io/downloads.

After installing the Anaconda Python Distribution please visit https://anaconda.org/MOSEK/mosek for MOSEK specific installation instructions.

4.1.2 General setup

Linux

  1. Download the Linux 64bit x86 MOSEK Optimization Suite distribution from https://mosek.com/downloads/ and unpack it into a chosen directory.

  2. Optionally add the path

    <MSKHOME>/mosek/8/tools/platform/linux64x86/bin
    

    to the OS variable PATH, where <MSKHOME> is the directory where MOSEK was installed.

Mac OS

  1. Download the MAC OS 64bit x86 MOSEK Optimization Suite distribution from https://mosek.com/downloads/ and unpack it into a chosen directory.

  2. Run the command

    python <MSKHOME>/mosek/8/tools/platform/osx64x86/bin/install.py
    

    where <MSKHOME> is the directory where MOSEK was installed. This will set up the appropriate shared objects required when using MOSEK.

  3. Optionally add the path

    <MSKHOME>/mosek/8/tools/platform/osx64x86/bin
    

    to the OS variable PATH.

Windows, MSI installer

  1. Make the right choice between the 32bit and 64bit versions. For instance if you plan to use MOSEK with 32bit Python or MATLAB the 32bit version of MOSEK should be selected. In general it is recommend to use the 64bit version though.

  2. Download the Windows 32bit x86 or Windows 64bit x86 MOSEK Optimization Suite MSI installer from https://mosek.com/downloads/.

  3. Run the installer to complete the installation.

  4. Optionally add the path

    <MSKHOME>\mosek\8\tools\platform\<PLATFORM>\bin
    

    to the OS variable PATH, where <MSKHOME> is the directory where MOSEK was installed and <PLATFORM> is win64x86 or win32x86 depending on the version of MOSEK installed.

Windows, Manual installation

  1. Make the right choice between the 32bit and 64bit versions. For instance if you plan to use MOSEK with 32bit Python or MATLAB the 32bit version of MOSEK should be selected. In general it is recommend to use the 64bit version though.

  2. Download the Windows 32bit x86 or Windows 64bit x86 MOSEK Optimization Suite distribution from https://mosek.com/downloads/ and unpack it into a chosen directory.

  3. Optionally add the path

    <MSKHOME>\mosek\8\tools\platform\<PLATFORM>\bin
    

    to the OS variable PATH, where <MSKHOME> is the directory where MOSEK was installed and <PLATFORM> is win64x86 or win32x86 depending on the version of MOSEK installed.

4.2 Setting up the License

Token server setup

If you are using a floating license with a token server then follow the instructions in the Licensing Guide. This step is NOT required for trial and personal academic licenses in particular.

Client setup

MOSEK requires a valid license in order to be used. In practice the license is contained in a file called

mosek.lic

On Windows save the license file to

%USERPROFILE%\mosek\mosek.lic

On all Unix like operating systems including Mac OS save the license file to

$HOME/mosek/mosek.lic

If the folder mosek in the home directory does not exists, then it should be created. The license can be tested with the program msktestlic. For further information about the license system, and other non-standard ways of setting up the license, please consult the License Guide.

4.3 Finishing up

Important

  • See the Licensing Guide if you need more advanced help setting up the license.
  • For most languages and interfaces some additional steps are required. Please follow the instructions in the relevant interface documentation available from https://mosek.com/documentation/.