Skip to content
Advertisement

CP sat and solution search dead end

Just wondering what CP SAT does when it selects a branch which does not lead to global optimum? For instance, a code minimizing an objective returns:

JavaScript

I understand it ignores solutions with greater objective value in minimizing context.

Below is the setup.

JavaScript

Since the code finished in 40 seconds, can one assume it enumerated all solutions? I was unable to use enumerate_all_solutions parameter in combination with num_search_workers.

Advertisement

Answer

Like all solvers, it prunes branches as soon as possible. Note that search in a SAT solver is not a tree search.

After 40s, it proved that the solution is optimal. Luckily, it does not need to enumerate all solutions to do so.

Note: linearization_level = 0 is bizarre. Does it change anything ?

User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement