Simultaneous Static Unit Commitment and Economic Dispatch by Dynamic Programming