79300423

Date: 2024-12-22 03:27:51
Score: 1.5
Natty:
Report link

In CP-SAT the equivalent to min() is:
add_min_equality (self, LinearExprT target, Iterable[LinearExprT] exprs)

Bonus tip:
CP-SAT also offers constraints such as
add_all_different ()
which will simplify your model significantly.

IIRC, there is actually a soduko solver in the samples section (on ortools’ GitHub).

Good luck and happy holidays!

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Anonymous