cp_find_next_sol
cp_find_next_sol |
Purpose
Finds the next solution of the problem
Synopsis
function cp_find_next_sol : boolean
Return value
Returns
true if an additional solution can be found, else
false
Example
The following code shows how to scan all the solutions of a predefined problem containing b, x, y and z as decision variables:
while (cp_find_next_sol) writeln("b:", b, " x:", x, " y:", y, " z:", z)
Related topics