I need to find the dual to the following optimization problem:
$\text{max} \{c x: A x \leq b, C y \geq d, x+y \geq 0\}$,
where $A$ and $C$ are matrices and $c$, $b$, $x$ and $y$ are vectors.
In order to so, I want to find a matrix $A'$ and a vector $b'$ to reduce this problem to the standard form
$\text{max} \{c x: A' x \leq b'\}$.
I know how to do this for problems containing additional constraints on the vector $x$, but I do not know how to combine the constraints $C y \geq d$ and $x+y \geq 0$ into one useful constraint on $x$.
The trick is to combine your variables into a single vector $z = [x\ y]$, and write everything in terms of that. For example, you create the vector $c_x = [c\ 0]$ (i.e. it's just c padded out with zeros to multiply against the values of y) for your objective function, and you turn your three sets of constraints into a big single matrix multiplication where you build a block matrix out of A, C and a 1 vector with appropriate zero padding.