I am trying to optimize the function under the mathematical assumption given below (it essentially breaks down the current interval in the code into multiple subintervals but ho