Tag mathematical modeling of complex systems