An external CP-SAT solver solves the pinned five-by-four instance under deterministic parameters and reports a provable optimum. The lesson quotes only the deterministic fields of the run: the status, the objective value, and the assignment itself.

highlighted = computed this step

Invocation

The invocation is cpsat_stream_solve solve basic_assignment.jsonl --params num_search_workers:1,random_seed:1, with the solution values written to a temporary --sol file. Why: a single search worker and a fixed seed make the run deterministic, so the solution quoted below is reproducible rather than anecdotal.

one worker, one seed, deterministic solve\text{one worker, one seed, deterministic solve}
5 workers, 4 tasksT1T2T3T4W190807570W235855565W3125959095W44511095115W55010090100

Solver result

The solver reports status OPTIMAL with objective value 265. Why: OPTIMAL means the solver proved a matching bound, not merely found a good solution. The output also carries timing, conflict, and branch counts; those fields are omitted here because they vary from run to run, and only the status, the objective value, and the assignment are deterministic.

status OPTIMAL, objective 265\text{status OPTIMAL, objective }265
CP-SAT optimal assignment, cost 265T1T2T3T4W190807570W235855565W3125959095W44511095115W55010090100idle

The assignment

W1 takes T4, W2 takes T3, W3 takes T2, W4 takes T1, and W5 is idle. Why: each task is covered exactly once and the chosen cells sum to the certified objective. The labels are the diagram's own row and column headers.

∑chosen costs=265\sum \text{chosen costs}=265
CP-SAT optimal assignment, cost 265T1T2T3T4W190807570W235855565W3125959095W44511095115W55010090100idle

Diagram note

Highlighted cells are the solver's assignment, and the idle worker row is marked by role, carrying the word idle. The cell entries are the original exact costs, not reduced ones. Pixel positions are rounded for layout; every number shown is exact.

highlighted cells form the assignment\text{highlighted cells form the assignment}
CP-SAT optimal assignment, cost 265T1T2T3T4W190807570W235855565W3125959095W44511095115W55010090100idle