Skip navigation links

Package javax.constraints

This package describes a generic Java programming interface for Constraint Programming (CP API) - see www.jcp.org .

See: Description

Package javax.constraints Description

This package describes a generic Java programming interface for Constraint Programming (CP API) - see www.jcp.org .

CP API supports two clearly separated concepts:

The Constrained Variables are represented in form of Java objects which may use the predefined constrained variables types such as Var, VarBool, VarReal, and VarSet.

The Constraints themselves are objects inherited from a generic class Constraint. The API covers major binary and global constraints required for the practical CP programming.

To find the problem solutions, the API uses predefined search algorithms expressed by class SearchStrategy. There are predefined methods that allow a user to find a feasible solution, all solutions, or an optimal solution.

Skip navigation links