- Notifications
You must be signed in to change notification settings - Fork71
2.1.0: string constraints and parallel solver#92
-
This release provides two exciting improvements: string constraints and a parallel solver! Introducing string constraints, a new interface for addConstraint where users can simply write their constraint(s) as a list of Python-evaluable strings. Writing constraints in the new string format is preferable over functions and lambdas. These strings, even as compound statements, are automatically parsed to faster built-in constraints, are more concise, and do not require constraint solving familiarity by the user to be efficient. The new Parallel Solver is a solver that is able to parallelize solving for all solutions over the largest domain in both ProcessPool and ThreadPool mode. In ProcessPool mode, string constraints must be used instead of functions or lambdas, as these can't be pickled. This Parallel Solver is currently experimental and unlikely to provide an actual speedup - it is recommended to use the default OptimizedBacktrackingSolver for now. In addition, Python 3.13 and 3.14 support has been added and dependencies updated. For more details, see#91. This discussion was created from the release2.1.0: string constraints and parallel solver. |
BetaWas this translation helpful?Give feedback.