I have a question about alignment of equation numbers, this is my code:
Code: Select all
\documentclass{book}
\usepackage{amsmath}
\begin{document}
\begin{align}
\max \qquad &\sum_{v}d(A,B)v(F_{1},F_{2},A,B)&&\label{problem}\tag{P}\\
\text{s.t.}\qquad & \displaystyle\sum_{\substack{v:i\in F_{1},\\j\in
B}}v(F_{1},F_{2},A,B)\leq c_{ij}&&\text{for every
$i\in\mathcal{F},j\in\mathcal{C}$}\label{constraint1}\\
&\sum_{v:i\in F_{2}}u_{i}(A,B)v(F_{1},F_{2},A,B)\leq
f_{i}&&\text{for every $i\in\mathcal{F}$}\label{constraint2}\\
&v\geq 0.&&\nonumber
\end{align}
\end{document}
I know \reqno and \leqno let you number all equations either on the right or on the left, but I don't know how to number a single equation (or align, or array conglomerate) on the left and everything else on the right.
Thanks!