Derivation (forms of linear programs)
Reducing to general form
For a general linear program, we can write all constraints in the form $\v a_i^T \v x \leq b_i$:
-
$\v a_i^T \v x \leq b_i\iff (-\v a_i^T)\v x\geq -b_i$;
-
$\v a_i^T \v x = b_i \iff \v a_i^T \v x \leq b_i$ and $(-\v a_i^T)\v x \leq -b_i$;
-
$x_j = \v e_j^T \v x$ where $\v e_j$ is the $j$-th standard basis vector.
Then we can construct a matrix $$ \begin{align*} A = \pmat{\textemdash & \v a_1^T & \textemdash \\ \textemdash & \v a_2^T & \textemdash \\ & \vdots & \\ \textemdash & \v a_m^T & \textemdash} \end{align*} $$ to write the constraints as $$ \begin{align*} A\v x\leq \v b \iff \v a_i^T\v x\leq \v b_i \quad \forall i=1,2,\ldots,m. \end{align*} $$
So any linear program can be written in the general form.
General form = standard form
Clearly we can turn any standard form linear programs into the general form using the method above.
To write a general form linear program in standard form, note that we can always write $\v x=\v x_+ - \v x_-$ where $\v x_+, \v x_-\geq \v 0$. So the linear program can be written as
$$ \begin{align*} \text{Minimise } &\v c^T (\v x_+ - \v x_-) \\ \text{subject to } &A(\v x_+ - \v x_-) + \v s = \v b, \\ & \v x_+ \geq \v 0, \\ & \v x_- \geq \v 0, \\ & \v s \geq \v 0. \end{align*} $$