We present a study of the parallel tempering (replica exchange) Monte Carlo method, with special focus on the feedback-optimized parallel tempering algorithm, used for generating an optimal set of simulation temperatures. This method is applied to a lattice simulation of a homopolymer chain undergoing a coil-to-globule transition upon cooling. We select the optimal number of replicas for different chain lengths, N = 25, 50 and 75, using replicas round-trip time in temperature space, in order to determine energy, specific heat, and squared end-to-end distance of the hopolymer chain for the selected temperatures. We also evaluate relative merits of this optimization method.