I'm trying to format an optimization problem but I am having trouble aligning and and labeling it properly in one environment. I have two equations, each written using an \begin{aligned*} environment. The first is
\documentclass{report}
\usepackage{amsmath}
\begin{document}
\begin{equation*}
\begin{aligned}
& \underset{y \in X,\ u \in Y}{\text{minimize}}
&& J(y,u) \\
&\text{subject to}
\end{aligned}
\end{equation*}
\end{document}
and the second is
\documentclass{report}
\usepackage{amsmath}
\begin{document}
\begin{equation*}
\begin{cases}
\begin{aligned}
-\nabla^2 y &= u &\text{ for } x \text{ in } \Omega, \\
y &= 0 &\text{ for } x \text{ on } \partial \Omega.
\end{aligned}
\end{cases}
\end{equation*}
\end{document}
I'd like to be able to either join them together into one equation but have it formatted the same as the above code, or, somehow, leave them separated as two equations but then label them jointly as one equation so I can refer the pair jointly.