minizinc for Mac
Medium-level constraint modeling language
minizinc — overview
A high-level constraint modelling language that allows you to easily express and solve discrete optimisation problems.
Visit our website »
View Documentation · Report Bug · Request Feature
About the Project Getting Started Installation Usage Building Prerequisites Compilation Testing License Acknowledgements Contact
About The Project
MiniZinc is a free and open-source constraint modeling language.
You can use MiniZinc to model constraint satisfaction and optimisation problems in a high-level, solver-independent way, taking advantage of a large library of pre-defined constraints. Your model is then compiled into FlatZinc, a solver input language that is understood by a wide range of solvers.
MiniZinc is developed at Monash University with support from OPTIMA.
Getting Started
To get a MiniZinc up and running follow these simple steps.
Installation
The recommended way to install _MiniZinc_ is by the use of the bundled binary packages. These packages are available for machines running Linux, Mac, and Windows.
The latest release can be found on the MiniZinc website.
Usage
Once the MiniZinc bundle is installed on your machine, you can start expressing and solving discrete optimisation problems. The following code segment shows a MiniZinc model for the well known n-queens problem.
You have two easy options to solve this model: In the MiniZincIDE: Select your preferred solver and press the "Run" button. With the minizinc executable available on your path: run minizinc --solver gecode nqueens.mzn.
_For more example MiniZinc models and more information about working with MiniZinc, please refer to our Documentation_
Building
The following instructions will help you compile the MiniZinc compiler. Note that this repository does not include the IDE, findMUS, or any solvers that are part of the MiniZinc project. These can be found in the following repositories: MiniZincIDE Gecode Chuffed
Prerequisites CMake (>=3.4) A recent C++ compiler - Compilation is tested with recent versions of Clang, GCC, and Microsoft Visual C++. (optional) Bison (>=3.4) and Flex (>=2.5) - To make changes to the MiniZinc lexer or parser. (optional) Gecode - To compile the internal Gecode solver interface (included in the MiniZinc bundle) (optional) Coin OR's CBC - To compile the internal CBC solver interface (included in the MiniZinc bundle) (optional) Proprietary solver headers (CPLEX, Gurobi, SCIP, Xpress) - To load these solvers at runtime (included in the MiniZinc bundle)
Compilation
The MiniZinc compiler is compiled as a CMake project. CMake's User Interaction Guide can provide you with a quick introduction to compiling CMake projects. The following CMake variables can be used in the MiniZinc project to instruct the compilation behaviour:
Possible values for ** are CPlex, Geas, Gecode, and OsiCBC.
Testing
Details
中等水平约束建模语言
How to install minizinc
- Open Terminal (press ⌘ + Space and type “Terminal”).
- If Homebrew is not installed yet, run the command below first.
- Run this command:
Latest 10 releases
Last updated 2026-08-31; current version 2.10.1, with the latest 10 releases listed.
| Version | Released | Type | Size | macOS | Windows | Linux |
|---|---|---|---|---|---|---|
| 2.10.1 | 2026-08-31 | Stable | 35.3 MB | Download | Download | Download |
| 2.10.0 | 2026-07-23 | Stable | — | — | — | — |
| 2.9.7 | 2026-04-30 | Stable | — | — | — | — |
| 2.9.6 | 2026-04-24 | Stable | — | — | — | — |
| 2.9.5 | 2026-01-23 | Stable | — | — | — | — |
| 2.9.4 | 2025-09-29 | Stable | — | — | — | — |
| 2.9.3 | 2025-05-23 | Stable | — | — | — | — |
| 2.9.2 | 2025-03-06 | Stable | — | — | — | — |
| 2.9.1 | 2025-03-03 | Stable | — | — | — | — |
| edge | 2026-08-13 | Pre-release | 39.0 MB | Download | Download | Download |
Data from GitHub Releases; stable releases first, each group sorted newest first.
Compared with similar apps
Only public metadata is compared, with no subjective recommendation; see the compare pages for field-by-field comparisons.
| App | Version | License | Architecture | 30-day installs |
|---|---|---|---|---|
| minizinc | 2.10.1 | MPL-2.0 | CLI | 19 |
| metals | v1.6.9 | Apache-2.0 | CLI | 19 |
| millet | v0.15.3 | Apache-2.0 OR MIT | CLI | 21 |
| openssl@4 | openssl-4.1.0 | Apache-2.0 | CLI | 494,798 |
Similar apps: Command-line Tools
metals
See the website:millet
A language server for Standard ML (SML).openssl@4
Cryptography and SSL/TLS Toolkitxz
General-purpose data compression with high compression ratiopkgconf
pkgconf is a program which helps to configure compiler and linker flags for development…node
Node.js is an open-source, cross-platform JavaScript runtime environment.Categories: Command-line Tools