Thermodynamic Optimization of Finite-Time Processes