帮助格式化我的优化问题

帮助格式化我的优化问题

我正在和全班beamer同学一起制作一些幻灯片。我遇到了一个优化问题,我无法将它放在一张幻灯片中,如您在此处所见(最后一个约束被删去了):

在此处输入图片描述

这是我的代码:

\tiny
\begin{equation}
\label{modelo_mat}
\begin{aligned}
& \text{minimize}
&& \sum_{i=1}^{N} (w_1DTT3_i+w_2DTTI_i+w_3a_i)\\
& \text{sujeito a:}
&& y_{fi}^h = \frac{1}{\dfrac{X_{Cfi}}{f_Q h_{si}}+j\left(\dfrac{hX_{Cfi}}{h_{si}^2}-\dfrac{X_{Cfi}}{h}\right)} \quad i = 1,2, ..., N \quad h = 3,5,7,...  \\
&&& \textbf Y^h \textbf V^h = \textbf I^h \quad h = 3,5,7,...,h_{max}\\
&&& DTT3_i = \frac{\sqrt{\sum_h V_i^{h^2}}}{U_i}\times 100\% , \quad i = 1,2,...,N \quad h = 3,9,15, ... \\
&&& DTTI_i = \frac{\sqrt{\sum_h V_i^{h^2}}}{U_i}\times 100\% , \quad i = 1,2,...,N \quad h = 5,7,11, ... \\
&&& DTT3_i \le \overline{DTT3_i} \quad i = 1,2,...,N \\
&&& DTTI_i \le \overline{DTTI_i} \quad i = 1,2,...,N \\
&&& \ubar{h}_{si} \le h_{si} \le \bar{h}_{si} \quad i = 1,2,...,N \\
&&& a_i \in \{0,1\} \quad i = 1,2,...,N \\
\end{aligned}
\end{equation}
\normalsize

我怎样才能改变它以使其适合单张幻灯片?

提前致谢!

答案1

看看您的代码片段的以下修改是否适合您的幻灯片:

\tiny
\begin{equation}
\label{modelo_mat}
\begin{aligned}
& \text{minimize}
&& \sum_{i=1}^{N} (w_1DTT3_i+w_2DTTI_i+w_3a_i)\\
& \text{sujeito a:}
&& y_{fi}^h = \left[\dfrac{X_{Cfi}}{f_Q h_{si}}+j\left(\dfrac{hX_{Cfi}}{h_{si}^2}-\dfrac{X_{Cfi}}{h}\right)\right]^{-1}, \quad i = 1,2, ..., N \quad h = 3,5,7,...  \\
&&& \textbf Y^h \textbf V^h = \textbf I^h \quad h = 3,5,7,...,h_{max}\\
&&& DTT3_i = \frac{1}{U_i}\sqrt{\sum\nolimits_h V_i^{h^2}}\times 100\% , \quad i = 1,2,...,N \quad h = 3,9,15, ... \\
&&& DTTI_i = \frac{1}{U_i}\sqrt{\sum\nolimits_h V_i^{h^2}}{U_i}\times 100\% , \quad i = 1,2,...,N \quad h = 5,7,11, ... \\
&&& DTT3_i \le \overline{DTT3_i} \quad i = 1,2,...,N \\
&&& DTTI_i \le \overline{DTTI_i} \quad i = 1,2,...,N \\
&&& \bar{h}_{si} \le h_{si} \le \bar{h}_{si} \quad i = 1,2,...,N 
    \ ;\quad
    a_i \in \{0,1\} \quad i = 1,2,...,N \\
\end{aligned}
\end{equation}

它给:

在此处输入图片描述

答案2

我建议这样的布局:

\documentclass{beamer}
\usepackage{mathtools, nccmath}
\usepackage{accents}
\newcommand{\ubar}[1]{\underaccent{\bar}{#1}}

\setbeamersize{text margin left = 5mm,text margin right = 5mm}

\begin{document}

\section{Methods and Materials}

\begin{frame}
\begin{equation}
\label{modelo_mat}
\begin{alignedat}{3}
& \text{minimize}
&& \sum_{i=1}^{N} (w_1DTT3_i+w_2DTTI_i+w_3a_i)\\
& \text{sujeito a: } & & \forall i = 1,2, ..., N, \\
&& & y_{fi}^h = \frac{1}{\mfrac{X_{Cfi}}{f_Q h_{si}}+j\left(\mfrac{hX_{Cfi}}{h_{si}^2}-\mfrac{X_{Cfi}}{h}\right)}, & \hspace*{-1.7em}& h = 3,5,7,... \\
&&& \textbf Y^h \textbf V^h = \textbf I^h &\hspace*{-1.7em} & h = 3,5,7,...,h_{\rlap{\small max}}\\
&&& DTT3_i = \medmath{\frac{\sqrt{\sum_h V_i^{h^2}}}{U_i}\times 100\% }, & \hspace*{-1.7em} & h = 3,9,15,... \\
&&& DTTI_i =\medmath{ \frac{\sqrt{\sum_h V_i^{h^2}}}{U_i}\times 100\% , }& \hspace*{-1.7em} & h =5,7, 11,... \\
&&& DTT3_i \le \overline{DTT3_i} \\
&&& DTTI_i \le \overline{DTTI_i} \\
&&& \ubar{h}_{si} \le h_{si} \le \bar{h}_{si}\\
&&& a_i \in \{0,1\}
\end{alignedat}
\end{equation}
\end{frame}

\end{document} 

在此处输入图片描述

相关内容