A polyhedron is defined as the solution set of a finite number of linear equalities and inequalities:
$$P = \{x | a^T_j x ≤ b_j , j = 1, . . . , m, c^T_j x = d_j , j = 1, . . . , p\}$$ A polyhedron is thus the intersection of a finite number of halfspaces and hyper- planes. Affine sets (e.g., subspaces, hyperplanes, lines), rays, line segments, and halfspaces are all polyhedra.
I understand the use of inequalities in the equation. It is used to select the halfspaces included by the polyhedron and thus form a closed structure. But I don't understand:
What is the role of the equalities $c^T_j x = d_j , j = 1, . . . , p$
And my second question is how is the 'intersection of a finite number of halfspaces and hyper-planes' a polyhedron? i.e for example if we take 2 halfspaces $a^T_1 x ≤ b_1$ and $a^T_2 x \geq b_2$ it will form an unending triangle (informally speaking) covering a sector of the plane. How is this a polyhedron?
NOTE: I am not a mathematician, so use of intuitive terms rather than technical will be more helpful to me.