15.10 Environment variablesΒΆ

This section lists operating system environment variables which can globally affect the behavior of MOSEK.

It is recommended that any environment variables are set in the environment before launching a process using MOSEK, or at the very least before the first time any MOSEK library or package is loaded by the process.

  • MOSEKLM_LICENSE_FILE - location of license file.

    Commonly used to point MOSEK to a floating license token server or change the default license file search path. For details see the licensing guide.

  • MOSEK_SYS_NUM_CORES - set the number of cores.

    When MOSEK is loaded it detects the number of cores available on the machine. Setting this environment variable overrides that detection.

    Most users will never need it. Typical applications would be:

    • When MOSEK fails to detect the number of cores correctly.

    • To limit the default number of cores available to MOSEK in a way transparent to the users.

  • PATH - system search path.

    In all automated cases (MSI, package managers) the installation process will ensure that the MOSEK binaries can be located on runtime, either by adding them to the system search path or via other mechanisms.

    It may be needed to set up by hand for manual, modified or other custom installations.

  • LD_LIBRARY_PATH, DYLD_LIBRARY_PATH - shared objects search path.

    Affects the locations where loader looks for shared libraries. Should never be needed for a correct installation.

  • MIMALLOC_PURGE_DELAY - mimalloc page release delay.

    Setting it to 0 gives the most aggressive memory release behavior at the cost of speed.

    Most users should never change it. Setting 0 may decrease memory consumption in some special scenarios. Known cases include optimizing very large models many times in a row in the same process. Do not consider it unless memory use becomes an actual issue. Usage at own risk.