Real-time energy scheduling for microgrids based on the Contract Collaboration Problem [183]