Below, I wrote what I want to express (and its output) without optidef. Since all other optimization problem equations in this paper are written in optidef, I would like this one to be as well. However, I cannot figure it out and would appreciate any help.
\begin{equation}
\max_{\textbf{x} \in \mathcal{X}} f(\textbf{x}) = \min_{\textbf{x} \in \mathcal{X}} -f(\textbf{x})
\end{equation}

\mathbf{x}and not\textbf{x}. – egreg Jan 18 '24 at 18:42What I'm looking to do is use the optidef package to write what I wrote in my question above. I hope this clarified the question.
– Muhammad Mir Jan 19 '24 at 19:19