Mosek
Python API for Mosek
Decision gist · record as of 2026-08-14
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.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- MOSEK requires a valid license (free trial and academic licenses available at https://www.mosek.com).
- Python 3.9 or later required.
- Medium install friction due to compiled binary wheels for multiple platforms (macOS ARM64, Linux x86_64 and aarch64, Windows x64).
License · maintenance · safety
(unclear) — 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.
last release 2026-06-10 (65 days)
0 known vulnerabilities (OSV.dev, 2026-08-14) · 430,486 downloads/mo, #6,726 on PyPI
Alternatives
Verify before relying
pip install mosek
import mosek
import numpy as np
# Requires valid MOSEK license; see https://www.mosek.com for trial/academic options- 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
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 on this page. Verify before relying on it.
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
mosek on PyPI
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.
MOSEK requires a valid license (free trial and academic licenses available at https://www.mosek.com). Python 3.9 or later required.
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
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 | Not declared unclear |
| Python support | Supports the current Python release <3.15,>=3.9 |
| Install friction | Medium. Platform-specific wheel |
| Runtime dependencies | 1 packagenumpy |
| Maintenance | Actively maintained 65 days since the last release |
| First released | |
| Downloads | 430,486 / month, #6,726 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
Evidence: mosek-11.2.2-cp39-abi3-macosx_11_0_arm64.whl; mosek-11.2.2-cp39-abi3-manylinux2014_x86_64.whl; mosek-11.2.2-cp39-abi3-manylinux_2_27_aarch64.whl; mosek-11.2.2-cp39-abi3-win_amd64.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “semidefinite programming”
- MosekMOSEK solves large-scale convex and mixed-integer optimization…
- cvxoptcvxopt is a Python library for solving convex optimization problems,…
- clarabelClarabel is an interior-point conic optimization solver that handles…
Give your agent the search over MCP, or paste the wish link into any chat.
More Mathematics packages
NetworkX provides data structures and algorithms for creating, analyzing, and manipulating graphs and networks, supporting everything from simple undirected graphs to complex directed and weighted networks.
kiwisolver is a Python binding to a fast C++ implementation of the Cassowary constraint solver, enabling you to solve systems of linear constraints and inequalities.
Install it if you need to solve constraint systems; skip it if you only need simple linear algebra.
SymPy is a Python library for symbolic mathematics, performing algebraic manipulation, calculus, equation solving, and mathematical expression simplification without numerical approximation.
ContourPy calculates contours of 2D quadrilateral grids using C++11 algorithms wrapped in Python, offering serial and multithreaded implementations without requiring Matplotlib as a dependency.
PyTorch provides GPU-accelerated tensor computation and automatic differentiation for building and training deep neural networks in Python.
onnxruntime loads and executes Open Neural Network Exchange (ONNX) models with a focus on inference performance across CPUs and accelerators.
Install it if you have ONNX models to run in production or development.
See also cvxopt · scs · clarabel · ecos · daqp · gekko · highspy · qpsolvers · xpress · osqp