rename sat example; add to python tests

This commit is contained in:
Laurent Perron
2018-11-19 10:46:55 -08:00
parent 225dc5eb16
commit d3e201eb50

View File

@@ -28,7 +28,8 @@ class SolutionPrinter(cp_model.CpSolverSolutionCallback):
self.__solution_count += 1
def main():
def tasks_and_workers_assignment_sat():
"""Solve the assignment problem."""
model = cp_model.CpModel()
# CP-SAT solver is integer only.
@@ -115,5 +116,4 @@ def main():
(solver.Value(averages[j]) * 1.0 / scaling))
if __name__ == '__main__':
main()
tasks_and_workers_assignment_sat()