Reserve Determination for the Optimal Composition of the Generating System