constraints

Terms from Artificial Intelligence: humans at the heart of algorithms

Page numbers are for draft copy at present; they will be replaced with correct numbers when final book is formatted. Chapter numbers are correct and will not change now.

A constraint is some form of condtion that a solution or state has to satisfy. Often it is expressed in the form of set of equalities and inequalities between variables, for example cost < 100, cost = number × price. Sometimes the constraints are the main aspect of interest, for examplem "can I pack all of the grocery in the fridge?", in which case it is called a constraint satisfaction problem. In other occasions we may have an optmisation problem such as "how can I feed four people as cheaply as possible?", but where there are additional constraints such as "Jill is vegan" and "Tom has a nut allergy".

Defined on page 189

Used on Chap. 4: pages 56, 57, 58, 79, 80; Chap. 9: pages 189, 190, 191, 192, 193, 196; Chap. 12: pages 263, 265, 272; Chap. 13: page 303; Chap. 15: page 365; Chap. 18: pages 424, 430