You may run the optimization by calling 'bayesopt' function on 'minfn'. See the doc linked below for more details, the examples might be particularly useful to you.
If you wish to get it in mathematical form, kindly explain exactly what it is you're looking for: do you want to obtain an equation for the optimization problem?.. an equation of the Objective function? Kindly provide some details.