Engineering Interrelated Electricity Markets: An Agent-Based