# Why These Optimization Problems Do Not Align Properly?

I'm writing some LaTex notes on optimization using the package optidef and I noticed a problem with the 'identation' I'm obtainig. Let me show you two examples. While the code


\begin{mini*}
{}{\langle x,c\rangle}{\label{SOCP}}{}
\end{mini*}



works perfectly, the following outputs really poor alignment.

\begin{mini*}
{}{-\sum_{j\in [k]}n_j,\log(\beta_j)}{}{}
\end{mini*}


However, I'm not able to figure out what exactly is causing such difference. Can anyone help me to solve this issue?

You can tweak the alignment with a \hphantom{-}:

## Code:

\documentclass{article}
\usepackage{optidef}

\begin{document}
\begin{mini*}
{}{\langle x,c\rangle}{\label{SOCP}}{}

• @ArielSerranoni: You should be able to upvote now. However, the alignment still seems slightly off, not sure why. For future reference, while code snippets are useful in explanations, it is always best to compose a fully compilable MWE that illustrates the problem including the \documentclass and the appropriate packages so that those trying to help don't have to recreate it – Peter Grill May 20 '19 at 19:48