MaxiCP is a Java-based project that provides a powerful Constraint Programming (CP) solver. It includes both raw and high-level modeling APIs for users to define and solve constraint satisfaction problems efficiently.
The project contains two sets of example models located in different packages:
-
Raw Implementation Examples:
- Located in:
org.maxicp.cp.examples.raw
- These examples demonstrate how to use MaxiCP's raw implementation objects directly, giving you full control over the CP solver internals.
- Located in:
-
Modeling API Examples:
- Located in:
org.maxicp.cp.examples.modeling
- These examples use the high-level modeling API, which is then instantiated into raw API objects. This abstraction allows for a simpler and more expressive way to define constraint problems, while still leveraging the underlying raw API for solving.
- Located in:
We recommend using IntelliJ IDEA to develop and run the MaxiCP project.
-
Clone the Repository: Open a terminal and run the following command to clone the repository:
git clone https://github.com/<user>/maxicp.git
-
Clone the Repository: Launch IntelliJ IDEA. Select File > Open and navigate to the maxicp folder you cloned. Open the
pom.xml
file. -
Running the tests:
From the IntelliJ IDEA editor, navigate to the
src/test/java
directory. Right-click then selectRun 'All Tests'
to run all the tests.From the terminal, navigate to the root directory of the project and run the following command:
mvn test