Modeling and control of social systems