My question relates to here. I am trying to define new commands for hyperref. For example, I want to have some equations to be called: Function, Constraint, or Constraint Set. To do it, I tried to follow the instructions provided in the hyperlink.
\def\HyLang@english{%
\def\functionautorefname{Function}%
\def\conssetautorefname{Constraint set}%
\def\consautorefname{Constraint}%
}
And, I failed using it as follows:
\begin{equation}\label{consset:sum_all=1}
y_j^A+y_j^I+y_j^P=1 \qquad \forall j\in J
\end{equation}
\autoref{consset:sum_all=1} ensures that everything is alright!
which still prints as:
Equation (<eq number>) ensures that everything is alright!
while I want:
Constraint set (<eq number>) ensures that everything is alright!
Is there any quick solution?

cleverefis really, well, clever.;-)– egreg Oct 07 '19 at 20:29