Ascend FD-23R Manual de usuario Pagina 32

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 81
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 31
20 CHAPTER 1. The TOY(FD) System
fd statistics’ :: bool
Definition: fd statistics’ always returns true and displays a set of useful statistics
(usually in the console).
Example at the TOY(FD) command level
:
TOY(FD)> L== [X,Y,Z], domain L 1 4,
all_different’ L [complete true],
labeling [] L, fd_statistics’
Resumptions: 4
Entailments: 1
Prunings: 9
Backtracks: 0
Constraints created: 1
yes
L == [ 1, 2, 3 ]
X == 1
Y == 2
Z == 3
Elapsed time: 0 ms.
more solutions (y/n/d) [y]?
..........
fd statistics’/2
Type declaration:
fd statistics :: statistics int bool
Definition: ‘fd statistics Key V’ returns true if either
V unifies with the number of constraints created and also Key == con-
straints’ or
V unifies with the number of times that
1. a constraint is resumed and ‘Key == resumptions’,
2. a (dis) entailment was detected by a constraint and ‘Key == entailments’,
3. a domain was pruned and Key == prunings’‘,
4. a backtracking was executed because a domain becomes empty and Key ==
backtracks’.
Vista de pagina 31
1 2 ... 27 28 29 30 31 32 33 34 35 36 37 ... 80 81

Comentarios a estos manuales

Sin comentarios