Ascend FD-23R Manual de usuario Pagina 30

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 81
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 29
18 CHAPTER 1. The TOY(FD) System
Type declaration:
indomain :: int bool
Definition: indomain X assigns a value, from the minimum to the maximum
in its domain, to X.
Example at the TOY(FD) command level:
Next goal assigns (by backtracking and from minimum to maximum in its range)
each value to a variable.
TOY(FD)> domain [X] 1 2, indomain X
yes
X == 1
Elapsed time: 0 ms.
more solutions (y/n/d) [y]?
yes
X == 2
Elapsed time: 0 ms
labeling/2
Type declaration:
labeling :: [labelType] [int] bool
Definition: labeling O ptions L is true if an assignment of the variables in L
can be found such that all of the constraints already presented in the constraint
store are satisfied. Options is a list of at most four elements that allow to specify
the nature of the search.
Each element in this list may have a value in one of the following groups:
1. The first group controls the order in which variables are chosen for assign-
ment (i.e., variable ordering) and allows to select the leftmost variable in L
(leftmost), the variable with the smallest lower bound (mini), the variable
the greatest upper bound (maxi) or the variable with the smallest domain
(). The value ffc extends the option by selecting the variable involved
in the higher number of constraints.
2. The second group controls the value ordering, that is to say, the order in
which values are chosen for assignment. For instance, from the minimum
to the maximum (enum), by selecting the minimum or maximum (step)
or by dividing the domain in two choices by the mid point (bisect). Also
the domain of a variable can be explored in ascending order (up) or in
descending order (down).
Vista de pagina 29
1 2 ... 25 26 27 28 29 30 31 32 33 34 35 ... 80 81

Comentarios a estos manuales

Sin comentarios