I was trying to create tags for both the optimization problem and individual constraints within it. Below is an example. Is this possible in LaTex?
\begin{align}\tag{P1}
\begin{split}
\max_{x,y} & f(x,y) \\
s.t. & x+y \leq 5 \tag{constraint1} \\
& x+2y \geq 10 \tag{constraint2}
\end{split}
\end{align}