Demand response (DR) is a flexible way to improve distributed energy resource scheduling. The innovative contribution of this paper include complex contracts in the model, which can accommodate constraints according special expectations each player. Such are included optimization scheduling dispatch DR consumers. Multi-period events considered. In way, consumers specify limits on time, power, a...