Complex Social Systems in Dynamic Environments