This is my first post here, I hope I will be clear and follow the rules.
This is an example of the type of equations I would like to put in my document:
Code: Select all
\documentclass{article}
\begin{document}
\begin{equation}
\begin{array}{cl}
\displaystyle{\min_{x}} & f(x) \\
\textrm{subject to} &
\left\{
\begin{array}{l}
A x \le b \\ C x = d
\end{array}
\right.
\end{array}
\end{equation}
\end{document}
If I use align instead of equation+array I can get two labels, one for the cost and one for the constraints, but this is enough for my purpose.
I also played with subnumcases from the cases package, but I don't know how to make it work if the cases are a part of larger equation.
Any help will be much appreciated. Thanks!