Conflict analysis and prevention