Note that `SDP_Mat` is specified from the calculation above, as are our grids and our profit function. `OptTime` is the stopping time. `xT` specifies a boundary condition at the stopping time. A reward for meeting this boundary must be specified for it to make any difference. `delta` indicates the economic discount rate. Again, details are in the function documentation.