Code
\documentclass[a4paper,twoside,12pt]{book}
\usepackage{amstext}
\usepackage[utf8]{inputenc}
\usepackage{cases}
\usepackage{amsmath}
\begin{document}
\begin{subnumcases}{}\label{eq:regola_scelta_reject}
\begin{aligned}
objective &: \qquad \min \quad \sum_{j=1}^{H}x_jw_j\\
subject to &: \qquad \displaystyle\sum_{j=1}^{H}x_jw_j \geq W_L\\
\end{aligned} \label{eq:regola_scelta_reject_1}\\
\begin{aligned}
objective &: \qquad \min \quad \sum_{j=1}^{H}x_jw_j \vee H_{e} \geq 2 \\
subject to &: \qquad \displaystyle\sum_{j=1}^{H}x_jw_j < W_L\\
\end{aligned} \label{eq:regola_scelta_reject_2}\\
\end{subnumcases}
\end{document}
What I'm doing wrong? This is what I'm trying to acheive:
cases
request 2 condition on the same line. Is there any alternative tocases
that doesn't include the 2-nd condition? – gmeroni Mar 13 '14 at 13:59cases
environment in dollar signs will remove the particular errors you are experiencing, but there are other issues, such as material you intend as text being placed into math style. – Steven B. Segletes Mar 13 '14 at 14:01\documentclass
and ends with\end{document}
. – Steven B. Segletes Mar 13 '14 at 14:02