Optimization: Making Better Use of What You Have Optimization is the process of improving something…