LaTeX에서 이 최적화 문제를 어떻게 조판하나요?

LaTeX에서 이 최적화 문제를 어떻게 조판하나요?

LaTeX에서 최적화 문제의 형식("최소화 t 주제를 ..." 부분, 컨텍스트를 위해 주변에 텍스트를 포함함)을 어떻게 재현할 수 있습니까? 환경 을 사용해 보았지만 align*제대로 작동하지 못했습니다. 정당화가 잘못되었거나 텍스트와 수식 사이의 간격이 너무 넓습니다.

여기에 이미지 설명을 입력하세요

답변1

패키지 를 이용하시면 됩니다 optidef.

\documentclass{article}
\usepackage{amsmath}
\usepackage[nocomma]{optidef}

\begin{document}

The \emph{epigraph form} of the standard problem \eqref{st-prob} is the problem
\begin{mini}[2]
{}{t}{}{}
\addConstraint{f_0(x)-t}{\le 0}
\addConstraint{f_i(x)}{\le0\quad}{i=1,\dots,m}
\addConstraint{h_i(x)}{=0}{i=1,\dots,p,}
\end{mini}
with variables $x\in\mathbf{R}^n$ and $t\in\mathbf{R}$.

\end{document}

여기에 이미지 설명을 입력하세요

답변2

tabular다음 내부의 환경을 사용할 수 있습니다 equation.

\documentclass{article}
\begin{document}

\noindent
The \textit{epigraph form} of the standard problem is the problem
\begin{equation}
    \begin{tabular}{rl}
        minimize & $t$\\
        subject to & $f_0(x) - t \le 0$\\
                   & $f_i(x) \le 0$, \quad $i=1, \dots, m$\\
                   & $h_i(x) = 0$,   \quad $i=1, \dots, p$,\\ 
    \end{tabular}
\end{equation}
with variables $x\in R^n$ and \dots

\end{document}

여기에 이미지 설명을 입력하세요

답변3

또는 :arraysplit

\documentclass{article}
\usepackage{amsmath, amssymb}

\begin{document}

With \verb+array+  \eqref{eq:array}:
    \begin{equation}\label{eq:array}
\begin{array}{rl}
    \text{minimize} & t\\
  \text{subject to} & f_0(x) - t \le 0\\
                    & f_i(x) \le 0, \quad i=1, \dots, m\\
                    & h_i(x) = 0,   \quad i=1, \dots, p,
\end{array}
    \end{equation}
with variables $x \in \mathbb{R}^n$ and $t \in \mathbb{R}$. We can easily see \dots

\medskip
or with \verb+split+ \eqref{eq:split}:
    \begin{equation}\label{eq:split}
\begin{split}
    \text{minimize} \quad   & t\\
  \text{subject to} \quad   & f_0(x) - t \le 0\\
                            & f_i(x) \le 0, \quad i=1, \dots, m\\
                            & h_i(x) = 0,   \quad i=1, \dots, p,
  \end{split}
    \end{equation}
with variables $x \in \mathbb{R}^n$ and $t \in \mathbb{R}$. We can easily see \dots

\end{document}

여기에 이미지 설명을 입력하세요

관련 정보