I'm gonna typeset a NOT \ll using the method explained here by @Leo Liu.
This code snippet that uses the minimum required packages perfectly works:
\documentclass{article}
\usepackage{centernot}
\usepackage{amsmath}
\begin{document}
\begin{equation}
(\forall \pi_{i},\pi_{j} \in \mathcal{P}) [\pi_{i} \centernot\ll \pi_{j} \wedge \pi_{j} \centernot\ll \pi_{i}].
\end{equation}
\end{document}
But when I use the method in my main file including many other packages, an error is thrown about Missing $ inserted!
\documentclass{article}
\usepackage{graphicx}
\usepackage{mathptmx}
\usepackage{centernot}
\usepackage{amsmath}
\usepackage{tikz}
\usepackage{amssymb}
\usepackage{amsthm}
\usepackage{enumitem}
\usepackage{mathtools}
\usepackage{mathrsfs}
\usepackage{mathtools}
\usepackage{tabularx}
\usepackage{fdsymbol}
\usepackage{rotating}
\usepackage{nth}
\usepackage{array}
\usepackage{makecell}
\usepackage{soul}
\usepackage[normalem]{ulem}
\usepackage{algorithm}
\usepackage{algorithmicx,algpseudocode}
\usepackage[top=2cm, left = 2cm, right = 2cm, bottom = 2cm]{geometry}
\usepackage{stackengine}
\usepackage{braket}
\begin{document}
\begin{equation}
(\forall \pi_{i},\pi_{j} \in \mathcal{P}) [\pi_{i} \centernot\ll \pi_{j} \wedge \pi_{j} \centernot\ll \pi_{i}]. % error is here
\end{equation}
\end{document}
I guess there is a package conflict.
How can I fix this issue?!
Edit 1:
The error:
Missing $ inserted. ...j} \in \mathcal{P}) [\pi_{i} \centernot\ll
Edit 2:
The conflict is with fdsymbol package.

hfor more help when you get the error. – cfr Aug 22 '17 at 04:01mathtoolsloadsamsmath, so you cannot possibly need both of those.tikzalso loadsgraphicx, though there's more of a case for listing both if you want to remind yourself or something. – cfr Aug 22 '17 at 04:08centernotclash withfdsymbol. instead\centernot\lltry if\nllfromfdsymbolgives satisfactory result for you and if, removecenternotpackage from preamble. – Zarko Aug 22 '17 at 04:33\nllsaved me, and I completely got rid offdsymbol. Your helpful comment is really an answer. If you add an answer, I can accept it. – Aug 22 '17 at 04:41