7
$$
\min_{c^{(1)}, c^{(2)}, \cdots, c^{(m)}; \\ \mu_1, \mu_2, \cdots, \mu_K}
\frac{1}{m}
\sum_{i=1}^m \left\lVert \vec{x}^{(i)} - \mu_{c^{(i)}} \right\rVert
$$

The \\ does not seem to do the trick? How?

qazwsx
  • 852

2 Answers2

9

You can use a \substack:

enter image description here

Notes:

Code:

\documentclass{article}
\usepackage{amsmath}

\begin{document} [ \min_{\substack{c^{(1)}, c^{(2)}, \cdots, c^{(m)}; \ \mu_1, \mu_2, \cdots, \mu_K}} \frac{1}{m} \sum_{i=1}^m \left\lVert \vec{x}^{(i)} - \mu_{c^{(i)}} \right\rVert ] \end{document}

Peter Grill
  • 223,288
  • A \, is definitely needed before \frac{1}{m} and probably also in \vec{x}^{\,(i)}; I'm almost certain that \left and \right can (should) be omitted; possibly \bigl\lVert and \bigr\rVert could be used. Finally, \cdots should be \dots. – egreg Jun 04 '14 at 07:28
0

An alternative version, without \substack, but with some additional work:

\documentclass{article}
\usepackage{amsmath}

\begin{document}


\[
\min_{\begin{array}{c}\scriptstyle c^{(1)}, c^{(2)}, \cdots, c^{(m)}; \\[-4pt]
\scriptstyle \mu_1, \mu_2, \cdots, \mu_K
\end{array}
}
\frac{1}{m}
\sum_{i=1}^m \left\lVert \vec{x}^{(i)} - \mu_{c^{(i)}} \right\rVert
\]

\end{document}

enter image description here

I would also recommend replacing \cdots by \ldots or \dots.