Effective Parametric Optimization of Heating-Cooling Process with Optimum near the Domain Border