Getting Started

Get started with Choco-solver.

Quick start

Interested in using Choco in your project? There are different ways to do this: either your project is based on a build automation tool or not. The only prerequisite for running Choco solver is to have Java (Oracle JRE 11 or OpenJDK 11) installed on your machine.

Maven 3+

Copy-paste the artifact description to your pom.xml:

<dependency>
   <groupId>org.choco-solver</groupId>
   <artifactId>choco-solver</artifactId>
   <version>4.10.3</version>
</dependency>

To test snapshot release, you should update your pom.xml with :

<repository>
    <id>sonatype</id>
    <url>https://oss.sonatype.org/content/repositories/snapshots/</url>
    <snapshots>
        <enabled>true</enabled>
    </snapshots>
</repository>

Gradle 6+

Copy-paste the dependency declaration in your build.gradle:

repositories {
    mavenCentral()
}

dependencies {
    implementation 'org.choco-solver:choco-solver:4.10.3'
}

As a stand-alone application

First, download the last jar file from GitHub Release page. This jar file contains all required dependencies, unlike the one hosted in Maven Central Repository. The next step is simply to add the jar file to the classpath of your application. In the case your program depends on dependencies used by Choco solver too, you should consider using a build automation tool.

Community

Stay up to date on the development of Choco solver and reach out to the community with these helpful resources.

Feel free to meet cho-coders : @cprudhom (Charles Prud’homme) and @jgFages (Jean-Guillaume Fages)