Using OPL CP problems

Simple but didactic examples of constraint programming are available in the distribution, as an introduction to how to work with OPL CP models in IBM ILOG CPLEX Optimization Studio.

A simple CP model

This problem gives you an introduction to how to develop, run and debug OPL CP models in IBM ILOG CPLEX Optimization Studio. The problem involves choosing colors for the countries on a map so that at most four colors are used, and no neighboring countries are the same color. The object is to find a solution for a map coloring problem with six countries: Belgium, Denmark, France, Germany, Luxembourg, and the Netherlands.

To access this example, go to: examples/opl/color.