--- id: mosek version: "11.2.2" license: https://mosek.com/products/license-agreement license_treatment: unclear maintenance: active --- # Mosek — Python API for Mosek License: unclear · Maintenance: active · Downloads: 430.5K/mo ## What it is and what it does MOSEK is a commercial optimization solver that handles a wide range of convex and mixed-integer problems through a Python interface. It supports linear programs (LP), quadratic programs (QP), second-order cone programs (SOCP), exponential and power cone problems, semidefinite programs (SDP), quadratically constrained quadratic programs (QCQP), and mixed-integer programs (MIP). The package wraps a compiled solver engine and requires numpy as its only runtime dependency. Typically used in research, finance, engineering, and machine learning workflows where problem scale or numerical precision demands a commercial-grade solver. Requires Python 3.9 or later and a valid license (free trial and academic licenses available). Installation pulls precompiled binaries for common platforms, avoiding compilation overhead. Use it for: - Portfolio optimization and risk management in quantitative finance - Large-scale machine learning problems requiring conic relaxations or semidefinite programming - Engineering design optimization with convex constraints - Operations research and resource allocation problems - Academic research in convex optimization and mathematical programming ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. MOSEK solves large-scale convex and mixed-integer optimization problems including linear, quadratic, conic, and semidefinite programs via a Python API. Yes, if you have a convex or mixed-integer optimization problem at scale and can obtain a MOSEK license (free trial available). The solver is mature, actively maintained, and supports a broad problem class. No, if you need an open-source solver or cannot accept the licensing requirement. Verify license terms for your use case before committing. ## Install pip install mosek uv add mosek poetry add mosek ## Installing Mosek Before you install: Medium install friction due to compiled binary wheels for multiple platforms (macOS ARM64, Linux x86_64 and aarch64, Windows x64). Active maintenance with a release 65 days ago. Single runtime dependency on numpy. License in practice: License treatment is unclear; MOSEK requires a paid license, though trial and non-commercial academic licenses are available from the vendor. Verify licensing terms before production deployment. Quickstart: pip install mosek import mosek import numpy as np # Requires valid MOSEK license; see https://www.mosek.com for trial/academic options MOSEK requires a valid license (free trial and academic licenses available at https://www.mosek.com). Python 3.9 or later required. Verify before relying: - Whether trial or academic licenses are sufficient for your intended use case - Performance characteristics and solver quality relative to open-source alternatives - Support and SLA terms included with different license tiers ## Package facts - License: https://mosek.com/products/license-agreement (unclear) - Python support: supports_current - Install friction: medium - Maintenance: active - Downloads: 430.5K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags convex optimization solver, linear programming Python, semidefinite programming, mixed-integer optimization, quadratic cone programming, large-scale optimization, SOCP solver, optimization, convex-programming, commercial-solver [View on SkillFed](https://skillfed.io/packages/mosek) · [View on PyPI](https://pypi.org/project/mosek/)