Two analytic models of compromise in multi-agent systems