Modeling, Analysis, And Control Of Demand Response Resources