This is my first time posting in this latex.org. So, please accept my apology in case I posted not in the correct format.
I would like to create a corollary on overleaf with TeX Live 2022.
The expectation is as follows.
Here is code:
\documentclass[journal]{IEEEtran} \usepackage{mathtools} \usepackage{amsmath} \begin{document} %\begin{corollary}\label{Corollary:new_seq} Supposing that $i^{\ast} = argmax_i R_3(i)$ and $i^{\ast\ast} = argmax_i R_4(i)$ for all $i=1,\ldots,n$, if $max (R_3(i),R_4(i)) \geq max(R_5(A^{\prime}),R_6(A^{\prime\prime}))$ in a serial configuration, then the new sequence is optimal when one of the following constraints is fulfilled. \renewcommand{\labelenumi}{(\roman{enumi})} \begin{enumerate} \item \begin{equation} \label{eq:corollary_i} max_{i^{\ast} =1,...,n} (q_i^{\ast}\cdot p_i^{\ast} + (1-q_i^{\ast})c_i^{\ast} \quad \forall i^{\ast}\geq(n-1), q_i^{\ast}\cdot c_i^{\ast} + (1-q_i^{\ast})p_i^{\ast} \quad \text{for $i^{\ast} = n$}) \geq (n-1)w + nv \end{equation} \item \begin{equation} \label{eq:corollary_ii} max_{i^{\ast\ast} =1,...,n} (q_i^{\ast\ast}\cdot p_i^{\ast\ast} + (1-q_i^{\ast\ast})c_i^{\ast\ast} \quad \forall i^{\ast\ast}\geq(n-1), q_i^{\ast\ast}\cdot c_i^{\ast\ast} + (1-q_i^{\ast\ast})p_i^{\ast\ast} \quad \text{for $i^{\ast} = n$}) \geq (n+1)w + (n+2)v \end{equation} \end{enumerate} %\end{corollary} \end{document}]
However, here is the output.
What I need to correct on the code to make sure that the equations fit into the column?
Thank you.