To perform the economic dispatch.

Introduction

Economic Dispatch (ED) is a power system optimization problem that determines how to schedule the generation among committed power plants so that: the total generation cost is minimized, while meeting the total system demand (load), and respecting generator operating limits. Its a core part of power system operations and energy management.
Click here for the detailed theory explanation