This project hosts samples based on choco-solver-4.0.5. This is mainly a source projet and no executable jar provided. To easily play around with choco-solver, one needs:
- Java Development Kit 8
- Maven3 (optional but recommended)
- on IDE (eclipse, IntelliJ IDEA, etc)
- Download the latest source code (zip or tar.gz).
- Un-archive the file and go to samples directory.
- Open a terminal and run the maven command:
mvn clean install -DskipTests
- Then open the samples project with your IDE.
Depending on your IDE, maven provides commands to configure your environment.
For example,
mvn idea:idea
will generate *.ipr file.
To run a sample, select it org.chocosolver.samples.*
subpackages and call the main method.
For example, select org.chocosolver.samples.integer.Nonogram
and run the class with the following program arguments -f -d rabbit
.
Create a new project based on samples source and downloads required dependencies:
Add them to the classpath of the new project.