使用 optidef 消除优化问题后的缩进

使用 optidef 消除优化问题后的缩进

在使用该包定义优化方程后,有人能帮助我删除文本的缩进吗optidef

\documentclass{article}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage[short]{optidef}

\begin{document}

The optimization problem is defined as
\begin{argmini!}
    % Optimization variable
    {R,L_{\beta},\beta}
    % Objective function
    {\frac{\left\lVert Z_{\text{FRAC}}(R,L_{\beta},\beta,\omega) - Z_{\text{FEA}}(\omega)\right\rVert^{2}}{\left\lVert Z_{\text{FRAC}}(R,L_{\beta},\beta,\omega) + Z_{\text{FEA}}(\omega)\right\rVert^{2}} \label{eq:objectiveFunction}}
    % Optimization problem label
    {\label{eq:optimizationProblem}}
    % Optimization results
    {}
    % Constraints
    \addConstraint{R}{> 0, \quad R &&\in \mathbb{R}}
    \addConstraint{L_{\beta}}{> 0, \quad L_{\beta} &&\in \mathbb{R}}
    \addConstraint{0 \leq \beta}{\leq 1, \quad \beta &&\in \mathbb{R} \label{eq:betaConstraint}}
\end{argmini!}
where $Z_{\text{FRAC}}(R,L_{\beta},\beta,\omega)$ is the impedance calculated from the fractional model  and $Z_{\text{FEA}}(\omega)$ is the impedance determined by FEA.

\end{document}

示例输出

答案1

此问题已在最新版本中修复GitHub 上的 optidef。只需下载optidef.sty并将其添加到您的工作目录即可。

相关内容