This might be a dumb question but I am writing my model with optidef.
Using such a environment
\documentclass[a4paper]{article}
\usepackage{remreset}
\usepackage [short]{optidef}
\usepackage{listings}
\usepackage{enumitem}
\usepackage[hidelinks]{hyperref}
\lstset{basicstyle=\ttfamily,breaklines=true}
%Title Page
\title{ \\ Something \\ \textnormal{Version -2}}
\begin{document}
\maketitle
\begin{mini#}|sizeFormat|[constraintFormat]<break>
{optimizationVariable}
{objectiveFunction\label{objective}}
{\label{optimizationProblem}}
{optimizationResult}
\addConstraint{LHS.1}{RHS.1\label{Const1}}{extraConst1}
\addConstraint{LHS.2}{RHS.2\label{Const2}}{extraConst2}
.
.
\addConstraint{LHS.N}{RHS.N\label{ConstN}}{extraConstN}
\end{mini#}
\end{document}
Then the equations are labelled as (1a)..(1z)
The problem is that I have many equaltions here that go beyong 26 so I got this kind of error.
Latex error: Counter too large
My question is how I can change the label into numbers like (1) (2)...so that I can avoid this problem?
Many thanks!
MWEas in executable format? – MadyYuvi Oct 16 '19 at 11:05optidefuses thesubequationsenvironment fromamsmathto generate the (1a), (1b), ... listings. This means that the solution to this question should in principle also be applicable to this case. – Willie Wong Nov 25 '19 at 16:51