4 License system basics

The MOSEK Optimization Suite is licensed software which means a valid license is required. A license is provided by a license file that specifies:

  • which features in MOSEK have been licensed (an example of a feature is the nonlinear extension PTON),
  • how many copies of a feature can be used simultaneously,
  • an expiration date of each feature,
  • for floating licenses, the identifier of the server the license is tied to.

4.1 License Types

The license is managed by the FLEXlm (http://www.flexerasoftware.com/) license manager included in MOSEK. FLEXlm has two types of licenses:

  • floating: license tied to a particular computer that acts as a token server. MOSEK can be used on any computer connected to the token server through the local area network (LAN). In particular MOSEK can be used on the token server itself. Setting up a floating license is described in Section 6.
  • server (also known as node-locked): license tied to a particular computer that allows unlimited use of the licensed features on that particular machine. Setting up a server license is described in Section 7.

Moreover, note that:

  • institutional academic licenses are floating licenses.
  • trial and personal academic licenses behave as server licenses, except that they are not tied to a specific computer but can be used on any machine where the license file is present.

For floating, server and institutional academic licenses some computer-dependent information must be provided:

  • hostname: the name that identifies the computer in the network,
  • hostid: a unique computer identifier (typically its MAC address).

Instructions for obtaining hostname and hostid can be found in Section 5.

4.2 The License File

A license file is a plain text file that can be opened for inspection using any plain text editor (such as vim or emacs on Linux, or notepad on Windows). It is sometimes useful to inspect the file to check the expiration date, the activated features and computer information.

Listing 4.1 An example of license file for a floating license.
SERVER hulk f4ed3061a731
VENDOR MOSEKLM
FEATURE PTS MOSEKLM 8.0 12-dec-2018 2

[ ... ]

FEATURE PTON MOSEKLM 8.0 26-feb-2017 uncounted

[ ... ]

Listing 4.1 shows an extract of a license file for a floating license. We can see that:

  • the token server is hulk with hostid f4ed3061a731,
  • the PTS feature version 8.0 expires on 12-dec-2018 and the number of PTS tokens is 2,
  • the PTON feature version 8.0 expires on 26-feb-2017 and the number of PTON tokens is unlimited.

Perhaps somewhat confusingly server (node-locked) licenses do not contain the SERVER line, but the hostid is part of the feature description. A server (node-locked) license does not work and CANNOT be used with a token server.

4.3 Versions

MOSEK version 8 requires a license file with version at least 8. In general the version of the license must be at least as large as the version of MOSEK. Only the major version number matters.

In general the token server binaries should be as new as the newest client contacting the token server. If that is not case issues can be expected.