All Projects → chocoteam → Choco Solver

chocoteam / Choco Solver

Licence: bsd-4-clause
An open-source Java library for Constraint Programming

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to Choco Solver

Pulp
A python Linear Programming API
Stars: ✭ 1,080 (+108.49%)
Mutual labels:  solver, constraints
PyMiniSolvers
A Python API for the MiniSat and MiniCard constraint solvers.
Stars: ✭ 18 (-96.53%)
Mutual labels:  solver, constraints
Logician
Logic programming in Swift
Stars: ✭ 182 (-64.86%)
Mutual labels:  solver, constraints
GHOST
General meta-Heuristic Optimization Solving Toolkit
Stars: ✭ 28 (-94.59%)
Mutual labels:  solver, constraints
Optaplanner
AI constraint solver in Java to optimize the vehicle routing problem, employee rostering, task assignment, maintenance scheduling, conference scheduling and other planning problems.
Stars: ✭ 2,454 (+373.75%)
Mutual labels:  solver, constraints
csb
A cloth and soft body simulation library, using position based dynamics.
Stars: ✭ 29 (-94.4%)
Mutual labels:  solver, constraints
Pyamg
Algebraic Multigrid Solvers in Python
Stars: ✭ 335 (-35.33%)
Mutual labels:  solver
Secure Headers
PHP Secure Headers
Stars: ✭ 379 (-26.83%)
Mutual labels:  csp
Nerdamer
a symbolic math expression evaluator for javascript
Stars: ✭ 322 (-37.84%)
Mutual labels:  solver
Gophersat
gophersat, a SAT solver in Go
Stars: ✭ 300 (-42.08%)
Mutual labels:  constraints
Hopac
http://hopac.github.io/Hopac/Hopac.html
Stars: ✭ 461 (-11%)
Mutual labels:  csp
Convex.jl
A Julia package for disciplined convex programming
Stars: ✭ 417 (-19.5%)
Mutual labels:  solver
Handeye calib camodocal
Easy to use and accurate hand eye calibration which has been working reliably for years (2016-present) with kinect, kinectv2, rgbd cameras, optical trackers, and several robots including the ur5 and kuka iiwa.
Stars: ✭ 364 (-29.73%)
Mutual labels:  solver
Ik
Minimal Inverse Kinematics library
Stars: ✭ 340 (-34.36%)
Mutual labels:  solver
Nerdyui
An easy way to create and layout UI components for iOS.
Stars: ✭ 381 (-26.45%)
Mutual labels:  constraints
Snapkit
A Swift Autolayout DSL for iOS & OS X
Stars: ✭ 18,091 (+3392.47%)
Mutual labels:  constraints
Mylinearlayout
MyLayout is a powerful iOS UI framework implemented by Objective-C. It integrates the functions with Android Layout,iOS AutoLayout,SizeClass, HTML CSS float and flexbox and bootstrap. So you can use LinearLayout,RelativeLayout,FrameLayout,TableLayout,FlowLayout,FloatLayout,PathLayout,GridLayout,LayoutSizeClass to build your App 自动布局 UIView UITab…
Stars: ✭ 4,152 (+701.54%)
Mutual labels:  constraints
Stevia
🍃 Concise Autolayout code
Stars: ✭ 3,182 (+514.29%)
Mutual labels:  constraints
Tinyconstraints
Nothing but sugar.
Stars: ✭ 3,721 (+618.34%)
Mutual labels:  constraints
Uicollectionview Layouts Kit
📐 A set of custom layouts for UICollectionView with examples [Swift 5.3, iOS 12].
Stars: ✭ 410 (-20.85%)
Mutual labels:  constraints

logo

Maven Central Build Status

Donate Gitter javadoc.io

codecov.io Total alerts Codacy Badge

Choco-solver is an open-source Java library for Constraint Programming.

Current stable version is 4.10.6 (11 Dec 2020).

Choco-solver comes with:

  • various type of variables (integer, boolean, set, graph and real),
  • various state-of-the-art constraints (alldifferent, count, nvalues, etc.),
  • various search strategies, from basic ones (first_fail, smallest, etc.) to most complex (impact-based and activity-based search),
  • explanation-based engine, that enables conflict-based back jumping, dynamic backtracking and path repair,

But also, facilities to interact with the search loop, factories to help modelling, many samples, etc.

Choco-solver is distributed under BSD 4-Clause License (Copyright (c) 1999-2020, IMT Atlantique).

Contact: Choco-solver on Gitter

Overview

// 1. Create a Model
Model model = new Model("my first problem");
// 2. Create variables
IntVar x = model.intVar("X", 0, 5);
IntVar y = model.intVar("Y", 0, 5);
// 3. Create and post constraints thanks to the model
model.element(x, new int[]{5,0,4,1,3,2}, y).post();
// 3b. Or directly through variables
x.add(y).lt(5).post();
// 4. Get the solver
Solver solver = model.getSolver();
// 5. Define the search strategy
solver.setSearch(Search.inputOrderLBSearch(x, y));
// 6. Launch the resolution process
solver.solve();
// 7. Print search statistics
solver.printStatistics();

Documentation, Support and Issues

The latest release points to a tarball which contains the binary, the source code, the user guide (pdf) and the apidocs (zip).

You can get help on our google group. Most support requests are answered very fast.

Use the issue tracker here on GitHub to report issues. As far as possible, provide a Minimal Working Example.

Contributing

Anyone can contribute to the project, from the source code to the documentation. In order to ease the process, we established a contribution guide that should be reviewed before starting any contribution as it lists the requirements and good practices to ease the contribution process.

And thank you for giving back to choco-solver. Please meet our team of cho-coders :

Supporting Choco with financial aid favors long-term support and development. Our expenses are varied: fees (GitHub organization, Domain name, etc), funding PhD students or internships, conferences, hardware renewal, ...

Donate

Download and installation

Requirements:

  • JDK 8+
  • maven 3+

Choco-solver is available on Maven Central Repository, or directly from the latest release.

Snapshot releases are also available for curious.

In the following, we distinguish two usages of Choco:

  • as a standalone library: the jar file includes all required dependencies,
  • as a library: the jar file excludes all dependencies.

The name of the jar file terms the packaging:- choco-solver-4.10.4-jar-with-dependencies.jar or - choco-solver-4.10.4.jar.

  • choco-solver-4.10.4-jar-with-dependencies.jar or
  • choco-solver-4.10.4.jar.

A Changelog file is maintained for each release.

Inside a maven project

Choco is available on Maven Central Repository. So you only have to edit your pom.xml to declare the following library dependency:

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

Note that if you want 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>

As a stand-alone library

The jar file contains all required dependencies. The next step is simply to add the jar file to your classpath of your application. Note that if your program depends on dependencies declared in the jar file, you should consider using choco as a library.

As a library

The jar file does not contains any dependencies, as of being used as a dependency of another application. The next step is to add the jar file to your classpath of your application and also add the required dependencies.

Dependencies

To declare continuous constraints, Ibex-2.8.7 needs to be installed (instructions are given on Ibex website).

Building from sources

The source of the released versions are directly available in the Tag section. You can also download them using github features. Once downloaded, move to the source directory then execute the following command to make the jar:

$ mvn clean package -DskipTests

If the build succeeded, the resulting jar will be automatically installed in your local maven repository and available in the target sub-folders.

Choco-solver dev team

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].