A multi-agent based approach to transmission cost allocation