\begin{equation} \Delta \hat{x}_i(t_{n+s+1};\mathb...

Tạo vào: 23 tháng 2, 2026

Trả lời bằng GPT-5.2 Thinking bởi Chat01

Câu hỏi

\begin{equation}
\Delta \hat{x}i(t{n+s+1};\mathbf{\Gamma}i,\mathbf{\Gamma}{Z_i})

\Delta \hat{x}i(t{n+s};\mathbf{\Gamma}i,\mathbf{\Gamma}{Z_i})
+
\mathcal{N}i!\Big(
\Delta \hat{x}i(t{n+s};\cdot),,
\Delta \hat{x}
{Z_i}(t_{n+s};\mathbf{\Gamma}{Z_i}),,
\Gamma
{i,n+s},,
\delta_{n+s};\Theta_i^*
\Big),
\label{eq:rollout_mpc_game}
\end{equation}这个公式太长了需要换行。

Trả lời

可以用 amsmathaligned / split / multline 来断行。你这个式子右边函数参数很多,最常见、最整齐的是把“=”对齐,并把 \mathcal{N}_i( 的参数分到多行:

latex
\begin{equation} \begin{aligned} \Delta \hat{x}_i(t_{n+s+1};\mathbf{\Gamma}_i,\mathbf{\Gamma}_{Z_i}) &= \Delta \hat{x}_i(t_{n+s};\mathbf{\Gamma}_i,\mathbf{\Gamma}_{Z_i}) + \mathcal{N}_i\!\Big( \Delta \hat{x}_i(t_{n+s};\cdot),\, \Delta \hat{x}_{Z_i}(t_{n+s};\mathbf{\Gamma}_{Z_i}),\\ &\qquad \Gamma_{i,n+s},\, \delta_{n+s};\Theta_i^* \Big), \end{aligned} \label{eq:rollout_mpc_game} \end{equation}

要点:

  • aligned 后,在需要对齐的位置放 &(这里对齐等号)。
  • 断行用 \\,第二行用 \qquad(或 \quad)做缩进,让结构更清晰。
  • 记得导言区要有:\usepackage{amsmath}

如果你更喜欢“整段自然换行”的样式,也可以用 multline(不对齐等号、第一行左对齐最后一行右对齐);但你这种“等号 + 长函数参数”通常 aligned 最好看。

Câu hỏi

\begin{equation}
J_i^{\mathrm{cpl}}

\mu_i\sum_{s=1}^{N_p}
\Big(
\mathbb{I}_{{i\ge 2}}
\big|
C^-\Delta \hat{x}i(t{n+s};\mathbf{\Gamma})

C^+\Delta \hat{x}{i-1}(t{n+s};\mathbf{\Gamma})
\big|^2
+
\mathbb{I}_{{i\le 4}}
\big|
C^+\Delta \hat{x}i(t{n+s};\mathbf{\Gamma})

C^-\Delta \hat{x}{i+1}(t{n+s};\mathbf{\Gamma})
\big|^2
\Big),
\label{eq:coupling_cost}
\end{equation}这个公式太长了需要换行

Trả lời

可以,同样用 amsmathaligned 把长的括号内容拆开,并让 = 对齐。你这个式子最清爽的断法是把两个指标项分到两行:

latex
\begin{equation} \begin{aligned} J_i^{\mathrm{cpl}} &= \mu_i\sum_{s=1}^{N_p} \Big( \mathbb{I}_{\{i\ge 2\}} \big\| C^-\Delta \hat{x}_i(t_{n+s};\mathbf{\Gamma}) - C^+\Delta \hat{x}_{i-1}(t_{n+s};\mathbf{\Gamma}) \big\|^2 \\ &\qquad\quad + \mathbb{I}_{\{i\le 4\}} \big\| C^+\Delta \hat{x}_i(t_{n+s};\mathbf{\Gamma}) - C^-\Delta \hat{x}_{i+1}(t_{n+s};\mathbf{\Gamma}) \big\|^2 \Big), \end{aligned} \label{eq:coupling_cost} \end{equation}

要点:

  • & 放在想对齐的位置(这里对齐等号)。
  • \\ 断行;第二行用 \qquad\quad(你也可以只用 \qquad)缩进,让 “+ …” 看起来是括号内部的下一项。
  • 导言区确保有:\usepackage{amsmath}

如果你还想更紧凑一点,也可以把每个 \|\cdot\|^2 内部再断一次(在 - 前后),但一般拆到两行就够用了。

Câu hỏi

%========================
\section{Nash Equilibrium-Based RNE-DMPC}
%========================

The five-stand tandem cold rolling system is strongly coupled through inter-stand tension propagation.
As a result, changes in control actions (roll gap and stand speed) at one stand can affect both upstream and downstream stands,
making centralized online optimization over all stands' decision variables computationally demanding.

To mitigate this issue, we decompose the global predictive-control problem into N=5N=5 local subproblems associated with individual stands.
Each local controller optimizes its own decision variables while accounting for coupling via limited information exchange with neighboring controllers.
Motivated by game-theoretic coordination \citep{rawlings2008coordinating}, we formulate distributed coordination as a Nash-equilibrium-seeking iteration.
Based on the trained residual neural network surrogate model, we construct a Nash-equilibrium-based distributed MPC method (RNE-DMPC)
for coordinated thickness--tension regulation and tracking. The overall control structure is shown in Figure~\ref{4}.

\begin{figure*}[htbp]
\centering
\includegraphics[width=\linewidth]{picture/x2.pdf}
\caption{Schematic diagram of the control architecture for a tandem cold rolling mill.}\label{4}
\end{figure*}

At sampling time tnt_n, stand ii chooses the polynomial-parameter sequence
Γi(tn)RpNc\mathbf{\Gamma}_i(t_n)\in\mathbb{R}^{pN_c}, where p=6p=6.
Let Γ(tn)col{Γ1(tn),,Γ5(tn)}\mathbf{\Gamma}(t_n)\triangleq \mathrm{col}\{\mathbf{\Gamma}_1(t_n),\ldots,\mathbf{\Gamma}_5(t_n)\}
denote the joint strategy profile, and let Γi(tn)\mathbf{\Gamma}_{-i}(t_n) denote the collection of all strategies except stand ii.

Given the current measured/estimated deviation state Δxi(tn)\Delta x_i(t_n) and the strategies
(Γi(tn),ΓZi(tn))(\mathbf{\Gamma}_i(t_n),\mathbf{\Gamma}_{Z_i}(t_n)),
the multi-step prediction used by stand ii is written explicitly as
\begin{equation}
\begin{aligned}
\Delta \hat{x}i(t{n+s+1};\mathbf{\Gamma}i,\mathbf{\Gamma}{Z_i})
&=
\Delta \hat{x}i(t{n+s};\mathbf{\Gamma}i,\mathbf{\Gamma}{Z_i})
+
\mathcal{N}i!\Big(
\Delta \hat{x}i(t{n+s};\cdot),,
\Delta \hat{x}
{Z_i}(t_{n+s};\mathbf{\Gamma}{Z_i}),\
&\qquad
\Gamma
{i,n+s},,
\delta_{n+s};\Theta_i^*
\Big),
\end{aligned}
\label{eq:rollout_mpc_game}
\end{equation}
for s=0,,Np1s=0,\ldots,N_p-1, with initialization Δx^i(tn;)=Δxi(tn)\Delta \hat{x}_i(t_n;\cdot)=\Delta x_i(t_n).
Here the neighbor stack Δx^Zi(tn+s;ΓZi)\Delta \hat{x}_{Z_i}(t_{n+s};\mathbf{\Gamma}_{Z_i}) is generated from neighbors' strategies via the same learned predictors.

Over [tn+s,tn+s+1][t_{n+s},t_{n+s+1}] with length δn+s\delta_{n+s},
\begin{equation}
\Delta u_{i,n+s}(\tau;\Gamma_{i,n+s})

\Gamma_{i,n+s,0}
+\Gamma_{i,n+s,1}\tau
+\Gamma_{i,n+s,2}\tau^2,\qquad \tau \in [0,\delta_{n+s}],
\end{equation}
and the interval-averaged increment is
\begin{equation}
\Delta u_i(t_{n+s})

\Gamma_{i,n+s,0}
+\Gamma_{i,n+s,1}\frac{\delta_{n+s}}{2}
+\Gamma_{i,n+s,2}\frac{\delta_{n+s}^2}{3}.
\label{eq:du_avg_clean}
\end{equation}

\begin{remark}
Because inter-stand tension TiT_i is jointly affected by the adjacent stands ii and i+1i+1,
the predicted evolution of Δxi\Delta x_i depends on neighbors' future actions,
hence the MPC problems are not independent but form a coupled dynamic game.
\end{remark}

At time tnt_n, the local strategy of stand ii is
\begin{equation}
\mathbf{\Gamma}_i(t_n)

\mathrm{col}{\Gamma_{i,n},\Gamma_{i,n+1},\ldots,\Gamma_{i,n+N_c-1}}
\in \mathbb{R}^{pN_c}.
\end{equation}

In deviation coordinates, the regulation/tracking objective is Δxi(t)0\Delta x_i(t)\rightarrow 0, i.e.
\begin{equation}
\Delta x_{i,\mathrm{ref}}(t_{n+s})\equiv 0\in\mathbb{R}^{d},\qquad d=3.
\end{equation}

Recall Δxi=[Δhi,ΔTi1,ΔTi]\Delta x_i=[\Delta h_i,\Delta T_{i-1},\Delta T_i]^\top.
Define the row selectors
\begin{equation}
C^- \triangleq [0\ \ 1\ \ 0]\in\mathbb{R}^{1\times 3},\qquad
C^+ \triangleq [0\ \ 0\ \ 1]\in\mathbb{R}^{1\times 3},
\end{equation}
so that CΔxi=ΔTi1C^- \Delta x_i=\Delta T_{i-1} (upstream interface) and C+Δxi=ΔTiC^+\Delta x_i=\Delta T_i (downstream interface).

For the interface between stands ii and i+1i+1,
stand ii's prediction provides C+Δx^iC^+\Delta \hat{x}_i, while stand i+1i+1's prediction provides CΔx^i+1C^- \Delta \hat{x}_{i+1}.
Their mismatch measures coupling inconsistency:
\begin{equation}
e_{i}^{\mathrm{sh}}(t_{n+s};\mathbf{\Gamma})
\triangleq
C^+\Delta \hat{x}i(t{n+s};\mathbf{\Gamma})

C^-\Delta \hat{x}{i+1}(t{n+s};\mathbf{\Gamma}),\qquad i=1,\ldots,4.
\label{eq:shared_tension_mismatch}
\end{equation}

We define the stage cost of stand ii as a function of all players' strategies:
\begin{equation}
J_i(\mathbf{\Gamma}i;\mathbf{\Gamma}{-i})

\sum_{s=1}^{N_p}
\left|
\Delta \hat{x}i(t{n+s};\mathbf{\Gamma}i,\mathbf{\Gamma}{Z_i})
\right|{Q_i}^{2}
+
\sum
{s=0}^{N_c-1}
\left|\Gamma_{i,n+s}\right|_{R_i}^{2}
+
J_i^{\mathrm{cpl}}(\mathbf{\Gamma}i;\mathbf{\Gamma}{-i})
\label{eq:Ji_game}
\end{equation}
where Qi0Q_i\succeq 0 weights thickness and tension deviations, and Ri0R_i\succeq 0 penalizes actuation magnitudes.

The coupling term JicplJ_i^{\mathrm{cpl}} explicitly reflects the game/coordination requirement on shared tensions.
A simple and effective choice is to penalize the interface mismatches adjacent to stand ii:
\begin{equation}
\begin{aligned}
J_i^{\mathrm{cpl}}
&=
\mu_i\sum_{s=1}^{N_p}
\Big(
\mathbb{I}_{{i\ge 2}}
\big|
C^-\Delta \hat{x}i(t{n+s};\mathbf{\Gamma})

C^+\Delta \hat{x}{i-1}(t{n+s};\mathbf{\Gamma})
\big|^2 \
&\qquad\quad
+
\mathbb{I}_{{i\le 4}}
\big|
C^+\Delta \hat{x}i(t{n+s};\mathbf{\Gamma})

C^-\Delta \hat{x}{i+1}(t{n+s};\mathbf{\Gamma})
\big|^2
\Big),
\end{aligned}
\label{eq:coupling_cost}
\end{equation}
with μi>0\mu_i>0 and indicator I{}\mathbb{I}_{\{\cdot\}}.
This term makes the coupling conflict explicit: unilateral actions that locally reduce thickness error may worsen shared-tension
compatibility and thus increase JiJ_i, and also affect neighbors' objectives.

We keep the same constraints as in \eqref{eq:u_abs_clean}--\eqref{eq:u_prop_clean}.
Collect them into a compact feasible set:
\begin{equation}
\Omega_i \triangleq
\Big{\mathbf{\Gamma}_i\ \Big|\
\eqref{eq:rollout_mpc_game}\ \text{holds and}\
\eqref{eq:u_abs_clean},\eqref{eq:du_traj_clean},\eqref{eq:u_prop_clean}\ \text{are satisfied}
\Big}.
\end{equation}

\paragraph{Local best-response problem (player ii).}
Given neighbors' current strategies (or the communicated predicted trajectories induced by them),
stand ii solves the differentiable NLP:
\begin{equation}
\mathbf{\Gamma}_i^{\mathrm{BR}}

\arg\min_{\mathbf{\Gamma}_i\in\Omega_i}\
J_i(\mathbf{\Gamma}i;\mathbf{\Gamma}{-i}).
\label{eq:local_BR}
\end{equation}
Because the learned surrogate is differentiable, \eqref{eq:local_BR} can be solved by standard gradient-based NLP solvers
(e.g., SQP or interior-point methods with automatic differentiation).

%========================
\subsection{Nash equilibrium coordination and relaxed best-response solution}
\label{subsec:nash_clean}
%========================

\paragraph{Dynamic game definition (five-stand).}
At each sampling time tnt_n, the distributed MPC coordination induces a finite-horizon dynamic game:
players are stands i=1,,5i=1,\ldots,5; strategy sets are Ωi\Omega_i; and payoff (cost) functions are Ji(Γi;Γi)J_i(\mathbf{\Gamma}_i;\mathbf{\Gamma}_{-i})
defined in \eqref{eq:Ji_game}--\eqref{eq:coupling_cost}.

\paragraph{Nash equilibrium (NE).}
A joint strategy profile Γ=col{Γ1,,Γ5}\mathbf{\Gamma}^*=\mathrm{col}\{\mathbf{\Gamma}_1^*,\ldots,\mathbf{\Gamma}_5^*\}
is a Nash equilibrium if
\begin{equation}
\forall i\in{1,\ldots,5},\qquad
\mathbf{\Gamma}i^*\in
\arg\min
{\mathbf{\Gamma}_i\in\Omega_i}
J_i(\mathbf{\Gamma}i;\mathbf{\Gamma}{-i}^*).
\label{eq:NE_def}
\end{equation}
This definition explicitly characterizes the strategic coupling:
each player's optimal decision depends on neighbors' decisions through the shared-tension dynamics and the coupling term.

\paragraph{Relaxed distributed best-response iteration (improved robustness).}
To compute an NE online with limited communication, we employ a relaxed best-response iteration.
Let ll denote the Nash-iteration index.
Given Γ(l1)\mathbf{\Gamma}^{(l-1)}, each stand computes a best response ΓiBR,(l)\mathbf{\Gamma}_i^{\mathrm{BR},(l)}
by solving \eqref{eq:local_BR}, and then updates with relaxation:
\begin{equation}
\mathbf{\Gamma}_i^{(l)}

(1-\omega)\mathbf{\Gamma}_i^{(l-1)}
+
\omega,\mathbf{\Gamma}_i^{\mathrm{BR},(l)},
\qquad \omega\in(0,1].
\label{eq:relaxed_BR}
\end{equation}
The relaxation factor ω\omega mitigates oscillations caused by strong coupling and improves practical convergence.

\paragraph{Convergence metric (unchanged).}
\begin{equation}
\varsigma^{(l)}

\max_i
\frac{\left|
\mathbf{\Gamma}_i^{(l)}-\mathbf{\Gamma}_i^{(l-1)}
\right|_2}{
\left|
\mathbf{\Gamma}_i^{(l-1)}
\right|_2+\epsilon},
\end{equation}
with ϵ>0\epsilon>0 small.

\begin{table}[t]
\centering
\small
\renewcommand{\arraystretch}{1.12}
\setlength{\tabcolsep}{3.5pt}
\caption{Relaxed distributed Nash best-response iteration for RNE-DMPC (five-stand).}
\label{tab:nash_iter_en}
\begin{tabularx}{\linewidth}{>{\centering\arraybackslash}p{0.11\linewidth} X}
\toprule
\textbf{Step} & \textbf{Description} \
\midrule
A &
Initialize l=1l=1 and warm-start Γi(0)\mathbf{\Gamma}_i^{(0)} (e.g., from the previous sampling time). \

B &
Communicate Γi(l1)\mathbf{\Gamma}_i^{(l-1)} (or the induced predicted trajectories) among neighbors; form ΓZi(l1)\mathbf{\Gamma}_{Z_i}^{(l-1)}. \

C &
Given Γi(l1)\mathbf{\Gamma}_{-i}^{(l-1)}, solve the best-response NLP \eqref{eq:local_BR} to obtain ΓiBR,(l)\mathbf{\Gamma}_i^{\mathrm{BR},(l)}. \

D &
Update the relaxed strategy using \eqref{eq:relaxed_BR} and compute the induced predictions
Δx^i(l)(;Γ(l))\Delta \hat{x}_i^{(l)}(\cdot;\mathbf{\Gamma}^{(l)}) via \eqref{eq:rollout_mpc_game}. \

E &
Broadcast Γi(l)\mathbf{\Gamma}_i^{(l)} and the predicted interface quantities needed in \eqref{eq:coupling_cost}
(e.g., C±Δx^i(l)C^\pm\Delta \hat{x}_i^{(l)}) to neighbors. \

F &
Compute ς(l)\varsigma^{(l)}; if ς(l)ςtol\varsigma^{(l)}\le \varsigma_{\mathrm{tol}}, stop and set Γi=Γi(l)\mathbf{\Gamma}_i^*=\mathbf{\Gamma}_i^{(l)}; otherwise ll+1l\leftarrow l+1 and repeat. \
\bottomrule
\end{tabularx}
\end{table}

\paragraph{Receding-horizon implementation (unchanged).}
After convergence, only the first-interval parameters Γi,n\Gamma_{i,n}^* are applied.
The within-interval increment is Δui,n(τ;Γi,n)\Delta u_{i,n}(\tau;\Gamma_{i,n}^*) and the discrete applied increment uses the interval average:
\begin{equation}
\Delta u_i(t_n)

\Gamma_{i,n,0}^*
+
\Gamma_{i,n,1}^\frac{\delta_n}{2}
+
\Gamma_{i,n,2}^
\frac{\delta_n^2}{3},
\end{equation}
followed by ui(tn)=ui(tn1)+Δui(tn)u_i(t_n)=u_i(t_{n-1})+\Delta u_i(t_n).

\paragraph{Remark (what makes the ``game'' visible).}
Equations \eqref{eq:Ji_game}--\eqref{eq:coupling_cost} and the NE definition \eqref{eq:NE_def} explicitly show that each player's objective
depends on others' strategies through (i) the coupled prediction dynamics and (ii) the shared-tension interface mismatch penalty,
thus making the multi-stand strategic interaction and coordination mechanism transparent.这里面有的公式标号没有这个公式,怎么解决

Suy nghĩ

Evaluating equation referencing issues

It looks like the issue might be with how the equations are labeled and referenced. Labels should follow the \caption or be inside the \begin{equation} environment. For aligned equations, they should come after \begin{aligned}. Maybe the references are missing because \eqref is used incorrectly or a label is in the wrong file. Also, \eqref inside an equation might not work as expected.

Analyzing the issue with equation labels in LaTeX

It seems like "equation number appears but doesn't correspond to the equation" could happen if the \label is placed outside the equation environment or within an unnumbered environment like \begin{equation*} or \begin{aligned}. Additionally, if using specific document classes like IEEEtran, equations might be numbered per section, leading to unexpected behavior.

Exploring possible explanations for missing equations

It seems the issue might be due to referencing a label—like \eqref—placed in an unnumbered equation environment (like \begin{equation*}). This could cause missing labels or incorrect references like (??). Alternatively, perhaps the equation was removed or moved to an appendix. Also, the use of \eqref inside math can cause nested parentheses.

Addressing equation labeling issues in LaTeX

It seems like the user might be having trouble with \label placement in an equation environment, especially with split or aligned equations. If they’re using \aligned, they might want \tag or \notag to control line numbering. Maybe some equations show up without numbers due to \nonumber or \notag. In the case of the equation+aligned setup, there shouldn't be numbering on each line, but the first number might not appear where expected.

Understanding the issue with equation labels and numbering

The user might be experiencing skips in equation numbers (like jumping from 12 to 14), possibly due to unnumbered equations using \notag. Placing \label outside the equation environment, such as after \end{aligned}, could also cause referencing issues, leading to wrong numbering. For proper labels, \label should be inside the equation environment, after \begin{equation}. In cases of multi-line equations, \tag can be used to fix positioning.

Guidance on correct placement of LaTeX labels

The label in LaTeX should be placed within the equation environment after \begin{equation} or \tag. If it’s placed before or outside this environment, it may cause an incorrect reference. Ensure there are no duplicate or undefined labels, and reference equations after they are defined. Make sure you compile twice for LaTeX to resolve labels properly. For multi-line equations, using \tag may help manage numbering.

Fixing LaTeX equations and labels issue

When working with LaTeX, it's essential to compile at least twice to resolve equation labels. If you don’t see equation numbers or proper linking, check the following: Ensure the equations are in a numbered environment (equation, align, gather), place \label correctly within the environment, and avoid duplicate labels.

Fixing multi-line equation numbering in LaTeX

To ensure correct numbering, use align for multi-line equations. If you want to number each line, use \notag for unnumbered lines. For a single number at the last line, use split. Move \label right after \begin{equation}. Always compile twice and avoid equation*.

Thought for 2m 11s

Trả lời

这类“引用了标号,但文中找不到/跳不到对应公式(或引用显示成 ??)”在 LaTeX 里基本就这几种原因。按下面顺序排查,通常一次就能解决。

1) 被引用的公式其实没编号(用了 * 或被 \notag/\nonumber 取消了)

你文中这句:

latex
\eqref{eq:u_abs_clean}--\eqref{eq:u_prop_clean}

如果 eq:u_abs_clean / eq:du_traj_clean / eq:u_prop_clean 那几条约束是用的 equation*align*,或者在对应行写了 \notag/\nonumber,那它们不会产生编号,引用就会变成 ?? 或者“看起来引用了一个不存在的公式号”。

解决: 把它们改成带编号的环境,并在里面加 \label,例如:

latex
\begin{equation}\label{eq:u_abs_clean} ... \end{equation}

如果你用的是 align 并且只想给其中某一行编号,确保那一行不要 \notag


2) \label 放错位置,导致“标号指向上一条公式/别的对象”

最稳妥的写法是: \label 紧跟在 \begin{equation} 后面(浮动体则是 \caption 后面)。

你现在的多行公式写法本身没问题,但如果你在别处把 \label 放到了环境外(例如 \end{equation} 之后),就会出现“这个标号不是这个公式”的情况。

推荐你把这两条都改成这种结构(更稳、也更利于超链接跳转):

latex
\begin{equation}\label{eq:rollout_mpc_game} \begin{aligned} ... \end{aligned} \end{equation}
latex
\begin{equation}\label{eq:coupling_cost} \begin{aligned} ... \end{aligned} \end{equation}

另外:图表一定要 \caption 后再 \label,你这张图目前是对的:

latex
\caption{...}\label{4}

3) 标签重名(同一个 \label{...} 在文中出现了不止一次)

这会导致引用“串号”或跳转不对。编译时日志通常会有:

  • Label ... multiply defined

解决: 全局搜一下 \label{eq:coupling_cost} 之类,确保每个 label 唯一。


4) 只编译了一次 / 辅助文件缓存坏了

交叉引用需要至少编译两次才会从 ?? 变成正确编号。

解决:

  • 连续编译两次(或用 latexmk -pdf)。
  • 仍不对就清理辅助文件:删除 .aux/.toc/.out/.lof/.lot 后再编译两次。

你这段里“最可疑”的点

从你贴的内容看,最容易出问题的是你引用的那几条约束 eq:u_abs_clean, eq:du_traj_clean, eq:u_prop_clean 并不在这段里——很可能它们在别处是无编号环境(*)或缺少 \label

把那几条约束对应的公式环境发我也行;但你不发也没关系,按上面 1)~4) 检查一遍基本就能定位并修掉。

Chia sẻ Q&A này