Research Article

Distributed Optimal Day-Ahead Scheduling in a Smart Grid: A Trade-Off among Consumers, Power Suppliers, and Transmission Owners

Algorithm 1

Day-ahead scheduling of consumers.
Require: ;
 (1) while do
 (2)  ;
 (3)  ;
 (4)  ;
 (5)  while do
 (6)   ;
 (7)   ;
 (8)   ;
 (9)   ;
 (10)  end while
 (11)  if then
 (12)   ;
 (13)  else if then
 (14)   ;
 (15)  else
 (16)   ;
 (17)  end if
 (18) end while
 (19) Return ;