You have to obtain ON/ OFF Matrix before dispatch; that's called commitment in most of the literature you will find it as Uih ; that's why it is said economic load dispatch is a sub problem of generation scheduling, my advice is to consider priority list method for ON/ OFF, it's effective and fast