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".
Used in Chap. 4: pages 41, 43, 59, 60; Chap. 9: pages 136, 137, 138, 140; Chap. 12: pages 188, 193; Chap. 13: pages 211, 212; Chap. 15: page 253; Chap. 18: pages 292, 296