File: fzn_on_restart_status.mzn

package info (click to toggle)
gecode-snapshot 6.2.0%2Bgit20240207-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 35,308 kB
  • sloc: cpp: 475,516; perl: 2,077; makefile: 1,816; sh: 198
file content (13 lines) | stat: -rw-r--r-- 685 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
/* 
  Set the variable `s` to one of the following numbers before solving and after
  each restart to reflect the result of searching since the last restart:
	 - 1 (START) -> The solver has not yet been restarted
	 - 2 (UNKNOWN) -> No solution has been found since the last restart
	 - 3 (UNSAT) -> The search space was (provably) exhausted and no solution was
     found since the last restart
	 - 4 (SAT) -> A solution was found since the last restart
	 - 5 (OPT) -> The (provably) optimal solution for the search space was found
     since the last restart
*/
predicate fzn_on_restart_status(var int: s) = gecode_on_restart_status(s);
predicate gecode_on_restart_status(var int: s)