Skip to content
Switch branches/tags

Modeling and Programming with Gecode

Modeling and Programming with Gecode (also known as MPG) provides an introduction to modeling and programming with Gecode, an open, free, portable, accessible, and efficient environment for developing constraint-based systems and applications.

The hands-on, tutorial-style approach will get you started very quickly. The focus is on giving an overview of the key concepts and ideas required to model and program with Gecode. Each concept is introduced using concrete C++ code examples that are developed and explained step by step. This document is complemented by the complete {Gecode reference documentation}, as well as pointers to introductory and more advanced material throughout the text.

Downloading MPG

If you want to download the latest version of MPG as a PDF, please consult the Gecode Documentation Page.


All material in this repository are released under the terms of the Creative Commons Attribution-NonCommercial-NoDerivs 3.0 license.

This Repository

This repository contains the LaTex source code for MPG together with scripts and a Makefile to build MPG and test the programs contained in MPG.

Building MPG

In order to build MPG you need:

  • a sufficiently recent TeX installation such as TeXLive
  • perl
  • ps2pdf which is part of GhostScript

Typing make `(up to three times) generates the file MPG.pdf.


Please see the main Gecode webpages on how to get in touch.


Modeling and Programming with Gecode







No releases published


No packages published