答案1
该解决方案使用\reqnomode
并\leqnomode
定义这里。
\documentclass{article}
\usepackage{amsmath}
\makeatletter
\newcommand{\leqnomode}{\tagsleft@true}
\newcommand{\reqnomode}{\tagsleft@false}
\makeatother
\begin{document}
% By default, labels are on the right-hand side
\leqnomode % switch to left-hand labels
\begin{align*}
\max cx&+hy \\
Ax&+Gy\leq b \tag{MIP}\\
x&\geq0,\text{ $y\geq0$ and integer}
\end{align*}
\reqnomode % switch back to right-hand labels
\end{document}