Modeling collective motion of complex systems using agent-based models & macroscopic models