☰ Menu
CLI Open source 19 installs/mo

minizinc for Mac

minizinc

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

  1. Open Terminal (press ⌘ + Space and type “Terminal”).
  2. If Homebrew is not installed yet, run the command below first.
  3. Run this command:

Latest 10 releases

Last updated 2026-08-31; current version 2.10.1, with the latest 10 releases listed.

VersionReleasedTypeSizemacOSWindowsLinux
2.10.12026-08-31Stable35.3 MBDownloadDownloadDownload
2.10.02026-07-23Stable————
2.9.72026-04-30Stable————
2.9.62026-04-24Stable————
2.9.52026-01-23Stable————
2.9.42025-09-29Stable————
2.9.32025-05-23Stable————
2.9.22025-03-06Stable————
2.9.12025-03-03Stable————
edge2026-08-13Pre-release39.0 MBDownloadDownloadDownload

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.

Compared with similar apps
AppVersionLicenseArchitecture30-day installs
minizinc2.10.1MPL-2.0CLI19
metalsv1.6.9Apache-2.0CLI19
milletv0.15.3Apache-2.0 OR MITCLI21
openssl@4openssl-4.1.0Apache-2.0CLI494,798

Similar apps: Command-line Tools

Leave a comment

评论表单加载中…