Suppose we have an integer linear program of the form:
$\begin{equation*} \begin{aligned} & \text{minimize} & & \sum\limits_{i=1}^n \sum\limits_{j=1}^n c_{ij}x_{ij}\\ & \text{s.t.} & & \mathbf{A}\mathbf{x}\geq \mathbf{b} \\ &&&\mathbf{dx}=\mathbf{g} \\ &&& x_{ij}\geq 0, x_{ij} \text{ integer} \end{aligned} \end{equation*} $
How can we formulate the constraint matrix for this problem? My thoughts will be to convert all constraints to equality constraints by adding slack variables, and then take the coefficients of each $x_{ij}$ (e.g. $a_{ij}$, $d_{ij}$) and put it into the matrix, which looks like:
$\begin{bmatrix} a_{11} \ \ \ \ \ \ \ \ a_{12} \ \dots \ \ \ a_{1n}\\ \vdots \\ a_{n1} \ \ \ \ \ \ \ a_{n2} \ \dots \ \ \ a_{nn}\\ d_{n+1, 1} \ d_{n+1,2} \ \dots \ d_{n+1,n} \end{bmatrix} $
Am I right on this? Some clarification will be great!